fix: printer method name

This commit is contained in:
Nuno Maduro
2024-09-10 22:29:01 +01:00
parent 95c5394b66
commit 49f15521e0
3 changed files with 5 additions and 5 deletions

View File

@ -79,11 +79,11 @@ final readonly class Configuration
} }
/** /**
* Gets the theme configuration. * Gets the printer configuration.
*/ */
public function theme(): Configuration\Theme public function printer(): Configuration\Printer
{ {
return new Configuration\Theme; return new Configuration\Printer;
} }
/** /**

View File

@ -9,7 +9,7 @@ use NunoMaduro\Collision\Adapters\Phpunit\Printers\DefaultPrinter;
/** /**
* @internal * @internal
*/ */
final readonly class Theme final readonly class Printer
{ {
/** /**
* Sets the theme to compact. * Sets the theme to compact.

View File

@ -54,7 +54,7 @@ final class UsesCall
} }
/** /**
* @deprecated Use `pest()->theme()->compact()` instead. * @deprecated Use `pest()->printer()->compact()` instead.
*/ */
public function compact(): self public function compact(): self
{ {