Skip to content

Commit

Permalink
Merge pull request #305 from FriendsOfCake/composer-config
Browse files Browse the repository at this point in the history
Update composer config
  • Loading branch information
ADmad authored Dec 16, 2022
2 parents d0fc762 + ec53e0a commit c9c21a4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
php-version: '7.4'
extensions: mbstring, intl
coverage: none
tools: vimeo/psalm:4.22, phpstan:1.4
tools: vimeo/psalm:4, phpstan:1.9

- name: Composer Install
run: composer require --dev cakephp/cakephp-codesniffer:^4.1
Expand Down
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
],
"require": {
"cakephp/cakephp": "^4.0",
"friendsofcake/crud": "^6.0",
"friendsofcake/bootstrap-ui": "^3.0"
"friendsofcake/bootstrap-ui": "^3.0",
"friendsofcake/crud": "^6.0"
},
"require-dev": {
"friendsofcake/cakephp-test-utilities": "^2.0",
Expand All @@ -54,5 +54,11 @@
"wiki": "http://cakephp.nu/cakephp-crud/",
"irc": "irc://irc.freenode.org/friendsofcake"
},
"prefer-stable": true
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
34 changes: 2 additions & 32 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
parameters:
ignoreErrors:
-
message: "#^Access to an undefined property object\\:\\:\\$element\\.$#"
count: 1
path: src/Listener/ViewListener.php

-
message: "#^Access to an undefined property object\\:\\:\\$query\\.$#"
count: 4
path: src/Listener/ViewListener.php

-
message: "#^Access to an undefined property object\\:\\:\\$type\\.$#"
count: 1
path: src/Listener/ViewListener.php

-
message: "#^Cannot unset offset mixed on array\\.$#"
message: "#^Cannot unset offset mixed on array\\{\\}\\.$#"
count: 2
path: src/Listener/ViewListener.php

Expand All @@ -41,22 +26,7 @@ parameters:
path: src/Listener/ViewSearchListener.php

-
message: "#^Binary operation \"\\+\" between string and array\\{data\\-enable\\-seconds\\?\\: 'true', data\\-date\\-format\\: string, data\\-alt\\-format\\?\\: mixed, data\\-alt\\-input\\?\\: 'true', data\\-no\\-calendar\\?\\: 'true', data\\-enable\\-time\\?\\: 'true', data\\-alt\\-input\\-class\\?\\: string, class\\: array\\{'input\\-group', 'flatpickr'\\}\\} results in an error\\.$#"
count: 1
path: src/View/Widget/DateTimeWidget.php

-
message: "#^Binary operation \"\\+\\=\" between array\\<string\\>\\|string and array\\{data\\-enable\\-seconds\\?\\: 'true', data\\-date\\-format\\: string, data\\-alt\\-format\\?\\: mixed, data\\-alt\\-input\\?\\: 'true', data\\-no\\-calendar\\?\\: 'true', data\\-enable\\-time\\?\\: 'true'\\} results in an error\\.$#"
count: 1
path: src/View/Widget/DateTimeWidget.php

-
message: "#^Offset 'data\\-wrap' does not exist on array\\{data\\-enable\\-seconds\\?\\: 'true', data\\-date\\-format\\: string, data\\-alt\\-format\\?\\: mixed, data\\-alt\\-input\\?\\: 'true', data\\-no\\-calendar\\?\\: 'true', data\\-enable\\-time\\?\\: 'true'\\}\\.$#"
count: 1
path: src/View/Widget/DateTimeWidget.php

-
message: "#^Offset 'iconClass' on array\\{data\\-enable\\-seconds\\?\\: 'true', data\\-date\\-format\\: string, data\\-alt\\-format\\?\\: mixed, data\\-alt\\-input\\?\\: 'true', data\\-no\\-calendar\\?\\: 'true', data\\-enable\\-time\\?\\: 'true'\\} in isset\\(\\) does not exist\\.$#"
message: "#^Binary operation \"\\+\" between string and non\\-empty\\-array results in an error\\.$#"
count: 1
path: src/View/Widget/DateTimeWidget.php

Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ includes:
parameters:
level: 7
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
paths:
- src
universalObjectCratesClasses:
Expand Down
2 changes: 1 addition & 1 deletion src/Action/DashboardAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DashboardAction extends BaseAction
/**
* HTTP GET handler
*
* @return void|\Cake\Http\Response
* @return void
*/
protected function _get()
{
Expand Down

0 comments on commit c9c21a4

Please sign in to comment.