diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 417491b..098d176 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: db-type: [sqlite, mysql, mariadb, pgsql, sqlsrv] - php-version: ['8.1', '8.2'] + php-version: ['8.1', '8.2', '8.3'] cakephp-version: ['latest'] name: | @@ -38,8 +38,7 @@ jobs: if: matrix.db-type == 'mysql' run: | docker run --rm --name=mysqld -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=test -p 3306:3306 -d mysql \ - --default-authentication-plugin=mysql_native_password --disable-log-bin --wait_timeout=240 --connect_timeout=240 \ - --max_allowed_packet=128M + --mysql-native-password=ON --disable-log-bin --wait_timeout=240 --connect_timeout=240 --max_allowed_packet=128M sleep 10 - name: Setup MariaDB latest diff --git a/composer.json b/composer.json index 70832ef..31c7e0c 100644 --- a/composer.json +++ b/composer.json @@ -13,14 +13,14 @@ "homepage": "https://ndm.li" } ], - "minimum-stability": "dev", + "minimum-stability": "stable", "prefer-stable": true, "require": { "php": ">=8.1", - "cakephp/orm": "5.x-dev" + "cakephp/orm": "^5.0" }, "require-dev": { - "cakephp/cakephp": "5.x-dev", + "cakephp/cakephp": "^5.0", "cakephp/cakephp-codesniffer": "^5.0", "phpunit/phpunit": "^10.1" }, diff --git a/phpstan.src.neon b/phpstan.src.neon index c4f53ae..8648e30 100644 --- a/phpstan.src.neon +++ b/phpstan.src.neon @@ -1,3 +1,3 @@ parameters: - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false + ignoreErrors: + - identifier: missingType.generics diff --git a/phpstan.tests.neon b/phpstan.tests.neon index 91a0dc9..5ee69f8 100644 --- a/phpstan.tests.neon +++ b/phpstan.tests.neon @@ -1,9 +1,11 @@ parameters: - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false bootstrapFiles: - tests/bootstrap.php ignoreErrors: + - + identifier: missingType.generics + - + identifier: missingType.iterableValue - message: "#^Call to an undefined method object\\:\\:enableAutoQuoting\\(\\)\\.$#" count: 1 diff --git a/psalm-baseline.xml b/psalm-baseline.xml index b6f4f4a..3eb1f7b 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,50 +1,61 @@ - + - SelectLoader + + + + - parent::__construct($options) - parent::__construct($options) - parent::_addFilteringCondition($query, $key, $filter) - parent::_addFilteringCondition($query, $key, $filter) - parent::_buildQuery($options) - parent::_buildQuery($options) - parent::_defaultOptions() - parent::_defaultOptions() + + + + + + + + - parent::__construct($options) - parent::__construct($options) - parent::_addFilteringCondition($query, $key, $filter) - parent::_buildQuery($options) - parent::_buildQuery($options) - parent::_defaultOptions() + + + + + + - array + + + + + + - SelectWithPivotLoader - parent::_buildResultMap($fetchQuery, $options) + + - parent::_buildResultMap($fetchQuery, $options) + + + + - buildEagerLoader + - buildEagerLoader +