mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 01:58:00 +08:00
Rename to all()
This commit is contained in:
@@ -379,7 +379,7 @@ class Color
|
||||
/**
|
||||
* @return array<string, array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string}>
|
||||
*/
|
||||
public static function colors(): array
|
||||
public static function all(): array
|
||||
{
|
||||
return [
|
||||
'slate' => static::Slate,
|
||||
|
||||
@@ -74,6 +74,6 @@ test('get colors', function () {
|
||||
$colors[strtolower($name)] = $color;
|
||||
}
|
||||
|
||||
expect(Color::colors())
|
||||
expect(Color::all())
|
||||
->toBe($colors);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user