Skip to content

Commit

Permalink
Merge pull request #193 from samsonasik/add-php84
Browse files Browse the repository at this point in the history
Add PHP 8.4 support
  • Loading branch information
samsonasik authored Dec 2, 2024
2 parents 312f3e4 + 730f4cf commit 7afebaf
Show file tree
Hide file tree
Showing 8 changed files with 261 additions and 383 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"forum": "https://discourse.laminas.dev/"
},
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 ",
"rector/rector": "1.2.10"
},
"require-dev": {
"laminas/laminas-servicemanager": "^4.0",
"phpunit/phpunit": "^9.5.26",
"phpunit/phpunit": "^10.5.38",
"squizlabs/php_codesniffer": "^3.7.1"
},
"autoload": {
Expand Down
593 changes: 238 additions & 355 deletions composer.lock

Large diffs are not rendered by default.

27 changes: 11 additions & 16 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>

<testsuites>
<testsuite name="laminas-servicemanager-migration">
<directory>./test</directory>
</testsuite>
</testsuites>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="laminas-servicemanager-migration">
<directory>./test</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public function test(string $filePath): void
$this->doTestFile($filePath);
}

public function provideData(): Iterator
public static function provideData(): Iterator
{
return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImportRenameUse');
return self::yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImportRenameUse');
}

public function provideConfigFilePath(): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public function test(string $filePath): void
{
$this->doTestFile($filePath);
}
public function provideData(): Iterator
public static function provideData(): Iterator
{
return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureCombineWithSetListAutoImport');
return self::yieldFilesFromDirectory(__DIR__ . '/FixtureCombineWithSetListAutoImport');
}

public function provideConfigFilePath(): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public function test(string $filePath): void
$this->doTestFile($filePath);
}

public function provideData(): Iterator
public static function provideData(): Iterator
{
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
}

public function provideConfigFilePath(): string
Expand Down
4 changes: 2 additions & 2 deletions test/Rector/RenameClassRector/AutoImportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public function test(string $filePath): void
$this->doTestFile($filePath);
}

public function provideData(): Iterator
public static function provideData(): Iterator
{
return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImport');
return self::yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImport');
}

public function provideConfigFilePath(): string
Expand Down
4 changes: 2 additions & 2 deletions test/Rector/RenameClassRector/RenameClassRectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public function test(string $filePath): void
$this->doTestFile($filePath);
}

public function provideData(): Iterator
public static function provideData(): Iterator
{
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
}

public function provideConfigFilePath(): string
Expand Down

0 comments on commit 7afebaf

Please sign in to comment.