[Lunr.Locator] General: Support Union types in get_parameters
Review Request #866 — Created Aug. 25, 2022 and discarded
Information | |
---|---|
smillernl | |
Lunr.Locator | |
fix/php81/union_types | |
Reviewers | |
lunr | |
General: Support Union types in get_parameters
Also removes a test that checked internal PHP behaviour that changed in PHP 8Accompanies https://github.com/M2mobi/lunr.locator/pull/3
- 1
- 0
- 2
- 0
- 3
Description | From | Last Updated |
---|---|---|
Interesting corner case: what if the type is string|object. The string code here would bypass the locator, so we'd never ... | pprkut |
-
-
src/Lunr/Core/ConfigServiceLocator.php (Diff revision 2) I'd rather have the foreach extra cost for union types only
-
-
src/Lunr/Core/ConfigServiceLocator.php (Diff revision 4) Interesting corner case: what if the type is
string|object
. The string code here would bypass the locator, so we'd never be able to pass an object instance.