Skip to content

Commit

Permalink
Fix errors reported by phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 25, 2019
1 parent aa93542 commit c1bd2ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
level: 7
checkMissingIterableValueType: false
autoload_files:
- tests/bootstrap.php
ignoreErrors:
Expand All @@ -8,6 +9,6 @@ parameters:
count: 1
path: src/View/Helper/FlashHelper.php
-
message: "#^Parameter \\#1 \\$string of static method Cake\\\\Utility\\\\Inflector\\:\\:underscore\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/View/Helper/FormHelper.php
message: '#Property BootstrapUI\\Shell\\Task\\TwbsAssetsTask::\$_[a-zA-Z]+ has no typehint specified#'
count: 4
path: src/Shell/Task/TwbsAssetsTask.php
5 changes: 5 additions & 0 deletions src/View/Helper/PaginatorHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

class PaginatorHelper extends \Cake\View\Helper\PaginatorHelper
{
/**
* Allowed sizes.
*
* @var string[]
*/
protected $_allowedSizes = ['sm', 'lg'];

/**
Expand Down

0 comments on commit c1bd2ad

Please sign in to comment.