[Lunr.Config] General: PHP 8.x compatibility

Review Request #821 — Created Feb. 15, 2022 and submitted

smillernl
Lunr.Config
chore/all/php_81
lunr
General: PHP 8.x compatibility


  • 0
  • 0
  • 2
  • 1
  • 3
Description From Last Updated
pprkut
  1. 
      
  2. composer.json (Diff revision 1)
     
     
    1. If we do this it will be AFAIK, since it has types in 8.0 but not in 7.x

    2. Well then we can't. Removing support for PHP 7 isn't in the cards right now.

  3. 
      
smillernl
pprkut
  1. 
      
  2. Composer changes conflict with https://reviews.lunr.nl/r/754/

    1. I'll rebase the remaining change whenever one is merged

    2. The other one is merged now, so ping ;)

  3. src/Lunr/Core/Configuration.php (Diff revision 2)
     
     

    I still don't get why this is needed. There's no difference between not specifying a return type and : mixed...

    1. Because in 8.x the base class does have the return type, so omitting it means it's incompatible with the interface.

  4. 
      
smillernl
pprkut
  1. Ship It!
  2. 
      
smillernl
Review request changed

Status: Closed (submitted)

Loading...