-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: differentiate between plugin locator and header locator usage
- Reverts `(set|get)PluginClassLoader()` method to original implementations, but with the addition of triggering deprecation notices. `trigger_error()` is now silenced, per recommendation from @glensc. - Adds `$headerLocator` property. - Renames `(get|set)HeaderLoader()` methods to `get|setHeaderLocator()`, and adds typehints. These now operate on the `$headerLocator` property. - Modifies `resolveHeaderClass()` to check for a non-null `$pluginClassLoader` property; if found, it uses that to resolve the header class, defaulting to `GenericHeader` if not loaded. - Updates PHPUnit dependency to 7.5.20, so we can use the various error types it provides. This is possible since we now depend on 7.1+. However, I did not update to later versions of PHPUnit as they would require refactoring tests to add typehints. - Refactors the unit tests to mirror the changes made. Signed-off-by: Matthew Weier O'Phinney <[email protected]>
- Loading branch information
1 parent
5c5e243
commit e85123e
Showing
3 changed files
with
90 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters