From ec2e637315065d0ae9ceff036e51cf84236653ca Mon Sep 17 00:00:00 2001 From: Jens True Date: Tue, 8 Jul 2025 09:41:38 +0000 Subject: [PATCH] Warning removal --- .phive/phars.xml | 4 ++-- composer.lock | 44 ++++++++++++++++++++-------------------- docs/index.rst | 8 +++++--- examples/motogp/goat.php | 2 +- 4 files changed, 30 insertions(+), 28 deletions(-) diff --git a/.phive/phars.xml b/.phive/phars.xml index 0a3c622..c51a88d 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -2,11 +2,11 @@ - + - + diff --git a/composer.lock b/composer.lock index b60bcdf..dbe6046 100644 --- a/composer.lock +++ b/composer.lock @@ -9,16 +9,16 @@ "packages-dev": [ { "name": "league/csv", - "version": "9.23.0", + "version": "9.24.1", "source": { "type": "git", "url": "https://github.com/thephpleague/csv.git", - "reference": "774008ad8a634448e4f8e288905e070e8b317ff3" + "reference": "e0221a3f16aa2a823047d59fab5809d552e29bc8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/csv/zipball/774008ad8a634448e4f8e288905e070e8b317ff3", - "reference": "774008ad8a634448e4f8e288905e070e8b317ff3", + "url": "https://api.github.com/repos/thephpleague/csv/zipball/e0221a3f16aa2a823047d59fab5809d552e29bc8", + "reference": "e0221a3f16aa2a823047d59fab5809d552e29bc8", "shasum": "" }, "require": { @@ -28,14 +28,14 @@ "require-dev": { "ext-dom": "*", "ext-xdebug": "*", - "friendsofphp/php-cs-fixer": "^3.69.0", - "phpbench/phpbench": "^1.4.0", - "phpstan/phpstan": "^1.12.18", + "friendsofphp/php-cs-fixer": "^3.75.0", + "phpbench/phpbench": "^1.4.1", + "phpstan/phpstan": "^1.12.27", "phpstan/phpstan-deprecation-rules": "^1.2.1", "phpstan/phpstan-phpunit": "^1.4.2", "phpstan/phpstan-strict-rules": "^1.6.2", - "phpunit/phpunit": "^10.5.16 || ^11.5.7", - "symfony/var-dumper": "^6.4.8 || ^7.2.3" + "phpunit/phpunit": "^10.5.16 || ^11.5.22", + "symfony/var-dumper": "^6.4.8 || ^7.3.0" }, "suggest": { "ext-dom": "Required to use the XMLConverter and the HTMLConverter classes", @@ -96,20 +96,20 @@ "type": "github" } ], - "time": "2025-03-28T06:52:04+00:00" + "time": "2025-06-25T14:53:51+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.13.1", + "version": "1.13.3", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c" + "reference": "faed855a7b5f4d4637717c2b3863e277116beb36" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/1720ddd719e16cf0db4eb1c6eca108031636d46c", - "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/faed855a7b5f4d4637717c2b3863e277116beb36", + "reference": "faed855a7b5f4d4637717c2b3863e277116beb36", "shasum": "" }, "require": { @@ -148,7 +148,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.1" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.3" }, "funding": [ { @@ -156,7 +156,7 @@ "type": "tidelift" } ], - "time": "2025-04-29T12:36:36+00:00" + "time": "2025-07-05T12:25:42+00:00" }, { "name": "nikic/php-parser", @@ -849,16 +849,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.5.24", + "version": "11.5.26", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "6b07ab1047155cf38f82dd691787a277782271dd" + "reference": "4ad8fe263a0b55b54a8028c38a18e3c5bef312e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6b07ab1047155cf38f82dd691787a277782271dd", - "reference": "6b07ab1047155cf38f82dd691787a277782271dd", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/4ad8fe263a0b55b54a8028c38a18e3c5bef312e0", + "reference": "4ad8fe263a0b55b54a8028c38a18e3c5bef312e0", "shasum": "" }, "require": { @@ -930,7 +930,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.24" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.26" }, "funding": [ { @@ -954,7 +954,7 @@ "type": "tidelift" } ], - "time": "2025-06-20T11:31:02+00:00" + "time": "2025-07-04T05:58:21+00:00" }, { "name": "rector/rector", diff --git a/docs/index.rst b/docs/index.rst index 69a426a..e4c6339 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -34,11 +34,15 @@ Links * `Mutation testing `_ * `Code metrics `_ * `Code Standard `_ +* `Benchmark `_ Standard Tools -------------- -* PHP8.3 +* PHP8.4 + +Development Tools +------------------- * PlantUML * GraphViz * Pandoc @@ -48,7 +52,5 @@ PHP Tools --------- For development Composer and the following packages are used (Recommended as Phars installed via Phive) -* sudo phive install -g composer phpdocumentor infection phpcs phpcbf phploc phpbench -* sudo phive install -g overtrue/phplint --force-accept-unsigned * composer install * composer all \ No newline at end of file diff --git a/examples/motogp/goat.php b/examples/motogp/goat.php index 48fe29c..6abf8ca 100644 --- a/examples/motogp/goat.php +++ b/examples/motogp/goat.php @@ -17,7 +17,7 @@ $csv->setDelimiter(','); $csv->setHeaderOffset(0); //build a statement -$stmt = Statement::create()->where(static fn (array $record): bool => $record['category'] == "MotoGP" || $record['category'] == "500cc"); +$stmt = new Statement()->where(static fn (array $record): bool => $record['category'] == "MotoGP" || $record['category'] == "500cc"); /** * @var $riders Player[]