[Locator] Add typehints to the main Locator class

Review Request #839 — Created June 8, 2022 and submitted

pprkut
Lunr.Locator
becd0c2...
lunr

Add typehints to the main Locator class

Unit tests

  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
smillernl
  1. 
      
  2. src/Lunr/Core/ConfigServiceLocator.php (Diff revision 1)
     
     

    shouldn't this be class|null then?

    1. Covariance and Contravariance keeps tripping me up. It's covariance for return types, so we can be more specific than the php documentation. I will change it.

  3. src/Lunr/Core/ConfigServiceLocator.php (Diff revision 1)
     
     

    normally we do object|null in comments

    1. I figured phpdoc would support ?, but after checking I don't see it :-/

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

Status: Closed (submitted)

Change Summary:

Merged into master

Loading...