[Lunr] Core: allow non-string values in the locators

Review Request #514 — Created April 21, 2017 and submitted

smillernl
Lunr
master
0a09fd9...
lunr
Core: allow non-string values in the locators


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

    not quite.

    calling $this->locate() on a value that is not a string doesn't make much sense, so you probably want an early catch for non-string values.

    1. locate has a check for non-string values already. I can double it but doesn't seem useful.

    2. fair enough

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

Status: Closed (submitted)

Change Summary:

Merged into master

Loading...