Releases: Brain-WP/Hierarchy
Releases · Brain-WP/Hierarchy
v3.2.0
v3.1.2
v3.1.1
v3.1.0
v2.7.0
v3.0.0
Changed
- Classes, interfaces, and traits are renamed:
Branch\BranchInterface
>Branch\Branch
Finder\CallbackTemplateFinder
>Finder\ByCallback
Finder\FoldersTemplateFinder
>Finder\ByFolders
Finder\SubfolderTemplateFinder
>Finder\BySubfolder
Finder\LocalizedTemplateFinder
>Finder\Localized
Finder\FindFirstTemplateTrait
>Finder\FindFirstTrait
Finder\TemplateFinderInterface
>Finder\TemplateFinder
Loader\AggregateTemplateLoaderInterface
>Loader\Aggregate
Loader\CascadeAggregateTemplateLoader
>Loader\Cascade
Loader\ExtensionMapTemplateLoader
>Loader\ExtensionMap
Loader\FileRequireLoader
>Loader\FileRequire
Loader\TemplateLoaderInterface
>Loader\Loader
- All methods use type declaration for parameters and return values
FileExtensionPredicate
constructor changed signature. First param type was (undeclared)string|string[] $extensions
now is (declared)string ...$extensions
Deprecared
Hierarchy::getHierarchy()
, replaced byHierarchy::hierarchy()
Hierarchy::getTemplates()
, replaced byHierarchy::templates()
Added
Hierarchy::hierarchy()
Hierarchy::templates()
- Support for "composed" file extensions like
.html.php
- GitHub action (replacing Travis) to run:
- unit tests executed in PHP 7.1 to PHP 8.2
- static analysys via Psalm
- PHPCS checks (inluding PHPCompatibility)
Removed
QueryTemplateInterface
is removed and not replaced by anything