Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds PHP 7.4 type properties #2

Merged
merged 2 commits into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "OPCache Preloader plugin for CakePHP",
"type": "cakephp-plugin",
"license": "MIT",
"keywords": ["cakephp","preload","preloader","opcache preloader","cakephp preloader", "cakephp opcache preloader"],
"require": {
"php": ">=7.4",
"cakephp/cakephp": "~4.2.0"
Expand Down Expand Up @@ -39,6 +40,13 @@
"phpmd": "phpmd src/ ansi phpmd.xml"
},
"support": {
"issues": "https://github.com/cnizzardini/cakephp-preloader/issues",
"source": "https://github.com/cnizzardini/cakephp-preloader"
}
},
"authors": [
{
"name": "Chris Nizzardini",
"role": "Developer"
}
]
}
2 changes: 1 addition & 1 deletion src/Command/PreloaderCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PreloaderCommand extends Command
/**
* @var \CakePreloader\Preloader
*/
private $preloader;
private Preloader $preloader;

/**
* PreloaderCommand constructor.
Expand Down
4 changes: 2 additions & 2 deletions src/PreloadResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ class PreloadResource
*
* @var string
*/
private $type;
private string $type;

/**
* The absolute file path to be preloaded
*
* @var string
*/
private $file;
private string $file;

/**
* @param string $type The preload resource type, see PreloadResource::TYPES
Expand Down
2 changes: 1 addition & 1 deletion src/Preloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Preloader
*
* @var \CakePreloader\PreloadResource[]
*/
private $preloadResources = [];
private array $preloadResources = [];

/**
* Returns an array of PreloadResource after sorting alphabetically
Expand Down