Skip to content

Commit

Permalink
Fix up PHPStan errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 25, 2017
1 parent 4a30af2 commit c24b18c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions phpstan.neon
Expand Up @@ -4,6 +4,8 @@ parameters:
ignoreErrors:
- '#Function wincache_ucache_[a-zA-Z0-9_]+ not found#'
- '#Function xcache_[a-zA-Z0-9_]+ not found#'
- '#Function mcrypt_[a-zA-Z0-9_]+ not found#'
- '#Function apcu_[a-zA-Z0-9_]+ not found#'
- '#Function fastcgi_[a-zA-Z0-9_]+ not found#'
- '#Cake\\Database\\Type\\[a-zA-Z0-9_]+Type::__construct\(\) does not call parent constructor from Cake\\Database\\Type#'
- '#Constructor of class Cake\\[a-zA-Z0-9_\\]+ has an unused parameter#'
Expand All @@ -16,6 +18,9 @@ parameters:
- '#Access to an undefined property Cake\\[a-zA-Z0-9_\\]+::\$_validViewOptions#'
- '#Access to an undefined property Cake\\Database\\Driver::\$_connection#'
- '#Constant XC_TYPE_VAR not found#'
- '#Instantiated class APCUIterator not found#'
- '#Constant APC_[A-Z0-9_]+ not found#'
- '#Constant MCRYPT_[A-Z0-9_]+ not found#'
- '#Call to static method id\(\) on an unknown class PHPUnit_Runner_Version#'
earlyTerminatingMethodCalls:
Cake\Shell\Shell:
Expand Down
1 change: 1 addition & 0 deletions src/Cache/Engine/ApcEngine.php
Expand Up @@ -230,6 +230,7 @@ public function groups()
*/
public function clearGroup($group)
{
$success = false;
apcu_inc($this->_config['prefix'] . $group, 1, $success);

return $success;
Expand Down
2 changes: 1 addition & 1 deletion src/Console/CommandCollection.php
Expand Up @@ -116,7 +116,7 @@ public function has($name)
* Get the target for a command.
*
* @param string $name The named shell.
* @return string|Cake\Console\Shell Either the shell class or an instance.
* @return string|\Cake\Console\Shell Either the shell class or an instance.
* @throws \InvalidArgumentException when unknown commands are fetched.
*/
public function get($name)
Expand Down

0 comments on commit c24b18c

Please sign in to comment.