diff --git a/.phive/phars.xml b/.phive/phars.xml index c51a88d..fde6184 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -2,11 +2,11 @@ - + - + diff --git a/composer.lock b/composer.lock index dbe6046..3fa2c43 100644 --- a/composer.lock +++ b/composer.lock @@ -849,16 +849,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.5.26", + "version": "11.5.27", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "4ad8fe263a0b55b54a8028c38a18e3c5bef312e0" + "reference": "446d43867314781df7e9adf79c3ec7464956fd8f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/4ad8fe263a0b55b54a8028c38a18e3c5bef312e0", - "reference": "4ad8fe263a0b55b54a8028c38a18e3c5bef312e0", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/446d43867314781df7e9adf79c3ec7464956fd8f", + "reference": "446d43867314781df7e9adf79c3ec7464956fd8f", "shasum": "" }, "require": { @@ -868,7 +868,7 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.13.1", + "myclabs/deep-copy": "^1.13.3", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=8.2", @@ -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.26" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.27" }, "funding": [ { @@ -954,7 +954,7 @@ "type": "tidelift" } ], - "time": "2025-07-04T05:58:21+00:00" + "time": "2025-07-11T04:10:06+00:00" }, { "name": "rector/rector", diff --git a/examples/motogp/goat.php b/examples/motogp/goat.php index 6abf8ca..44e494b 100644 --- a/examples/motogp/goat.php +++ b/examples/motogp/goat.php @@ -11,13 +11,14 @@ use DNW\Skills\Team; use DNW\Skills\Teams; //load the CSV document from a stream -$stream = fopen('motogp.csv', 'r'); -$csv = Reader::createFromStream($stream); +$csv = Reader::createFromPath('motogp.csv', 'r'); $csv->setDelimiter(','); $csv->setHeaderOffset(0); +$csv->setEscape(''); //build a statement -$stmt = new Statement()->where(static fn (array $record): bool => $record['category'] == "MotoGP" || $record['category'] == "500cc"); +$statement = new Statement(); +$stmt = $statement->where(static fn (array $record): bool => $record['category'] == "MotoGP" || $record['category'] == "500cc"); /** * @var $riders Player[]