Skip to content

Commit

Permalink
Bump PSL
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Sep 6, 2024
1 parent 29b6c02 commit 2c552d8
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analyzers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autoloader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3']
experimental: [false]
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
Expand Down
4 changes: 2 additions & 2 deletions build/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$tab = ' ';

// Clear file first!
write($target, '', WriteMode::TRUNCATE);
write($target, '', WriteMode::Truncate);

$files = Finder::create()
->in(dirname(__DIR__).'/src')
Expand Down Expand Up @@ -67,7 +67,7 @@ static function (SplFileInfo $file) use ($tab): string {
static fn (iterable $codeLines): string => join($codeLines, PHP_EOL)
);

write($target, $build($files), WriteMode::TRUNCATE);
write($target, $build($files), WriteMode::Truncate);

echo 'Created bootstrap file!'.PHP_EOL;
})();
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
],
"type": "library",
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.2.0 || ~8.3.0",
"ext-dom": "*",
"ext-libxml": "*",
"ext-xml": "*",
"ext-xsl": "*",
"ext-xmlreader": "*",
"ext-xmlwriter": "*",
"azjezz/psl": "^2.0.3 || ^3.0",
"azjezz/psl": "^3.0",
"webmozart/assert": "^1.10"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Xml/Writer/Opener/xml_file_opener.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function xml_file_opener(string $file): Closure
// Try to create the file first.
// If the file exists, it will truncated. (Default behaviour of XMLWriter as well)
// If it cannot be created, it will throw exceptions.
write($file, '', WriteMode::TRUNCATE);
write($file, '', WriteMode::Truncate);

return $writer->openUri($file);
};
Expand Down
2 changes: 1 addition & 1 deletion tests/Xml/Writer/Opener/XmlFileOpenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class XmlFileOpenerTest extends TestCase
public function test_it_can_open_a_file(): void
{
$this->createTmpFile(static function (string $path): void {
File\write($path, 'will be truncated', File\WriteMode::TRUNCATE);
File\write($path, 'will be truncated', File\WriteMode::Truncate);

$writer = Writer::forFile($path);
$writer->write(element('root'));
Expand Down

0 comments on commit 2c552d8

Please sign in to comment.