Bugs: |
|
---|
[Lunr.Locator] Core: Allow immutable class method usage
Review Request #867 — Created Sept. 12, 2022 and submitted
Information | |
---|---|
smillernl | |
Lunr.Locator | |
feature/methods/allow_immutable_class_methods | |
Reviewers | |
lunr | |
Core: Allow immutable class method usage
CI in https://github.com/M2mobi/lunr.locator/pull/4
-
-
src/Lunr/Core/Tests/ConfigServiceLocatorSupportTest.php (Diff revision 1) I think attaching this info to the method that is called makes it nicer. i.e. something like
'methods' => [ [ 'name' => 'test', 'params' => [ '!param1' ], 'replace_instance' => TRUE ] ]
immutable
as a keyword makes a bit less sense then, since the method is not immutable, that's why I pickedreplace_instance
, but maybe you find something better :)