Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jan 8, 2024
1 parent 30f4d70 commit 2aa6e08
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Attributes/WithMigration.php
Expand Up @@ -17,7 +17,7 @@ final class WithMigration implements InvokableContract
*
* @var array<int, string>
*/
public array $types = [];
public readonly array $types;

/**
* Construct a new attribute.
Expand Down
2 changes: 1 addition & 1 deletion src/Bootstrap/LoadConfigurationWithWorkbench.php
Expand Up @@ -20,7 +20,7 @@ class LoadConfigurationWithWorkbench extends LoadConfiguration
*
* @var bool
*/
protected bool $usesWorkbenchConfigFile = false;
protected readonly bool $usesWorkbenchConfigFile;

/**
* Construct a new bootstrap class.
Expand Down
6 changes: 3 additions & 3 deletions src/Console/Commander.php
Expand Up @@ -45,7 +45,7 @@ class Commander
*
* @var \Orchestra\Testbench\Foundation\Config
*/
protected Config $config;
protected readonly Config $config;

/**
* The environment file name.
Expand All @@ -72,7 +72,7 @@ public function __construct(
*
* @return void
*/
public function handle()
public function handle(): void
{
$input = new ArgvInput();
$output = new ConsoleOutput();
Expand Down Expand Up @@ -193,7 +193,7 @@ public static function applicationBasePath()
* @param \Throwable $error
* @return int
*/
protected function handleException(OutputInterface $output, Throwable $error)
protected function handleException(OutputInterface $output, Throwable $error): int
{
if ($this->app instanceof LaravelApplication) {
tap($this->app->make(ExceptionHandler::class), static function ($handler) use ($error, $output) {
Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/Application.php
Expand Up @@ -72,7 +72,7 @@ class Application
* @param (callable(\Illuminate\Foundation\Application):(void))|null $resolvingCallback
*/
public function __construct(
protected ?string $basePath = null,
protected readonly ?string $basePath = null,
?callable $resolvingCallback = null
) {
$this->resolvingCallback = $resolvingCallback;
Expand Down

0 comments on commit 2aa6e08

Please sign in to comment.