Skip to content

Commit d7496e8

Browse files
committed
minor: change version 2.8 to 2.9
1 parent c376dea commit d7496e8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

UPGRADE-2.8.md renamed to UPGRADE-2.9.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Migration guide from Foundry 2.7 to 2.8
1+
# Migration guide from Foundry 2.8 to 2.9
22

3-
The main feature of Foundry 2.8 is the deprecation of the `Factories` trait, in favor of the [PHPUnit extension](https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#phpunit-extension)
3+
The main feature of Foundry 2.9 is the deprecation of the `Factories` trait, in favor of the [PHPUnit extension](https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#phpunit-extension)
44
shipped by Foundry. It was necessary to remember to add the trait in every test class. And in some cases, Foundry could
55
still work even if the trait wasn’t added to the test, which could lead to subtle bugs. Now, Foundry is globally enabled
66
once for all.

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,9 +1698,9 @@ Add Foundry's `PHPUnit Extension`_ in your `phpunit.xml` file:
16981698
</extensions>
16991699
</phpunit>
17001700
1701-
.. versionadded:: 2.8
1701+
.. versionadded:: 2.9
17021702

1703-
The ability to globally enable Foundry with PHPUnit extension was introduced in Foundry 2.8 and requires at least
1703+
The ability to globally enable Foundry with PHPUnit extension was introduced in Foundry 2.9 and requires at least
17041704
PHPUnit 10.
17051705

17061706
.. note::

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public static function boot(\Closure|self $configuration): void
149149
self::$instance = $configuration;
150150

151151
if (FoundryExtension::shouldBeEnabled()) {
152-
trigger_deprecation('zenstruck/foundry', '2.8', 'Not using Foundry\'s PHPUnit extension is deprecated and will throw an error in Foundry 3. See https://github.com/zenstruck/foundry/blob/2.x/UPGRADE-2.8.md to upgrade.');
152+
trigger_deprecation('zenstruck/foundry', '2.9', 'Not using Foundry\'s PHPUnit extension is deprecated and will throw an error in Foundry 3. See https://github.com/zenstruck/foundry/blob/2.x/UPGRADE-2.9.md to upgrade.');
153153
}
154154
}
155155

src/Test/Factories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait Factories
3232
public function _beforeHook(): void
3333
{
3434
if (FoundryExtension::isEnabled()) {
35-
trigger_deprecation('zenstruck/foundry', '2.8', \sprintf('Trait %s is deprecated and will be removed in Foundry 3. See https://github.com/zenstruck/foundry/blob/2.x/UPGRADE-2.8.md to upgrade.', Factories::class));
35+
trigger_deprecation('zenstruck/foundry', '2.9', \sprintf('Trait %s is deprecated and will be removed in Foundry 3. See https://github.com/zenstruck/foundry/blob/2.x/UPGRADE-2.9.md to upgrade.', Factories::class));
3636

3737
return;
3838
}

0 commit comments

Comments
 (0)