Skip to content

Commit 3047689

Browse files
committed
♻️ wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent f3311e3 commit 3047689

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Concerns/Database/InteractsWithSqliteDatabaseFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function withoutSqliteDatabase(callable $callback): void
3535
if ($filesystem->exists($database)) {
3636
$filesystem->move($database, $temporary = "{$database}.backup-{$time}");
3737

38-
array_push($this->files, $temporary);
38+
$this->files[] = $temporary;
3939
}
4040

4141
value($callback);

src/Concerns/InteractsWithTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public static function usesTestingFeature($attribute): void
9999
/** @var class-string<TTestingFeature> $name */
100100
$name = \get_class($attribute);
101101

102-
array_push(static::$testCaseTestingFeatures, [
102+
static::$testCaseTestingFeatures[] = [
103103
'key' => $name,
104104
'instance' => $attribute,
105-
]);
105+
];
106106
}
107107

108108
/**

src/Concerns/InteractsWithWorkbench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function getPackageProvidersUsingWorkbench($app): ?array
7474
$providers = $config?->getExtraAttributes()['providers'] ?? [];
7575

7676
if ($hasAuthentication && class_exists('Orchestra\Workbench\AuthServiceProvider')) {
77-
array_push($providers, 'Orchestra\Workbench\AuthServiceProvider');
77+
$providers[] = 'Orchestra\Workbench\AuthServiceProvider';
7878
}
7979

8080
if (empty($providers)) {

src/PHPUnit/AttributeParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function forClass(string $className): array
3939
[$name, $instance] = static::resolveAttribute($attribute);
4040

4141
if (! \is_null($name) && ! \is_null($instance)) {
42-
array_push($attributes, ['key' => $name, 'instance' => $instance]);
42+
$attributes[] = ['key' => $name, 'instance' => $instance];
4343
}
4444
}
4545

@@ -75,7 +75,7 @@ public static function forMethod(string $className, string $methodName): array
7575
[$name, $instance] = static::resolveAttribute($attribute);
7676

7777
if (! \is_null($name) && ! \is_null($instance)) {
78-
array_push($attributes, ['key' => $name, 'instance' => $instance]);
78+
$attributes[] = ['key' => $name, 'instance' => $instance];
7979
}
8080
}
8181

0 commit comments

Comments
 (0)