Skip to content

Commit 138b048

Browse files
authored
chore: move over to php-standard-library/php-standard-library org (#32)
* Move over to php-standard-library/php-standard-library org * Add support for PSL 6 (and conflict with abandoned azjezz/psl)
1 parent e48f3f1 commit 138b048

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![License](https://poser.pugx.org/php-standard-library/phpstan-extension/license)](https://packagist.org/packages/php-standard-library/phpstan-extension)
66

77
* [PHPStan](https://phpstan.org/)
8-
* [PSL](https://github.com/azjezz/psl)
8+
* [PSL](https://github.com/php-standard-library/php-standard-library)
99

1010
## Description
1111

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
"phpstan/phpstan": "^2.0"
1111
},
1212
"conflict": {
13-
"azjezz/psl": "<1.6||>=6.0"
13+
"azjezz/psl": "*",
14+
"php-standard-library/php-standard-library": "<1.6||>=7.0"
1415
},
1516
"require-dev": {
16-
"azjezz/psl": "^1.6||^2.0||^3.0||^4.0||^5.0",
17+
"php-standard-library/php-standard-library": "^1.6||^2.0||^3.0||^4.0||^5.0||^6.0",
1718
"composer/semver": "^3.3",
1819
"nikic/php-parser": "^4.14.0",
1920
"php-parallel-lint/php-parallel-lint": "^1.2",

tests/Option/PslTypeSpecifyingExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public function testFileAsserts(
2929
...$args
3030
): void
3131
{
32-
if (!InstalledVersions::satisfies(new VersionParser(), 'azjezz/psl', '>=2.2.0')) {
33-
Assert::markTestSkipped(sprintf('Option component is not available in current azjezz/psl installed version'));
32+
if (!InstalledVersions::satisfies(new VersionParser(), 'php-standard-library/php-standard-library', '>=2.2.0')) {
33+
Assert::markTestSkipped(sprintf('Option component is not available in current php-standard-library/php-standard-library installed version'));
3434
}
3535

3636
$this->assertFileAsserts($assertType, $file, ...$args);

tests/Type/PslTypeSpecifyingExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function dataFileAsserts(): iterable
2424
yield from $this->gatherAssertTypes(__DIR__ . '/data/nullishAssert.php');
2525
yield from $this->gatherAssertTypes(__DIR__ . '/data/nullishMatches.php');
2626
}
27-
if (InstalledVersions::satisfies(new VersionParser(), 'azjezz/psl', '<2.0.0')) {
27+
if (InstalledVersions::satisfies(new VersionParser(), 'php-standard-library/php-standard-library', '<2.0.0')) {
2828
yield from $this->gatherAssertTypes(__DIR__ . '/data/complexTypev1.php');
2929
} else {
3030
yield from $this->gatherAssertTypes(__DIR__ . '/data/complexTypev2.php');

0 commit comments

Comments
 (0)