mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
fix phpstan errors
This commit is contained in:
@@ -26,6 +26,7 @@ namespace Illuminate\Contracts\Config;
|
|||||||
* flash_bag: array<string, string[]>,
|
* flash_bag: array<string, string[]>,
|
||||||
* presets: array<string, PresetType>,
|
* presets: array<string, PresetType>,
|
||||||
* plugins: array<string, PluginType>,
|
* plugins: array<string, PluginType>,
|
||||||
|
* themes: array<string, ThemeType>,
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @phpstan-type PresetType array{
|
* @phpstan-type PresetType array{
|
||||||
@@ -40,6 +41,12 @@ namespace Illuminate\Contracts\Config;
|
|||||||
* styles?: string[],
|
* styles?: string[],
|
||||||
* options?: array<string, mixed>,
|
* options?: array<string, mixed>,
|
||||||
* }
|
* }
|
||||||
|
*
|
||||||
|
* @phpstan-type ThemeType array{
|
||||||
|
* scripts?: string[],
|
||||||
|
* styles?: string[],
|
||||||
|
* options?: array<string, mixed>,
|
||||||
|
* }
|
||||||
*/
|
*/
|
||||||
interface Repository
|
interface Repository
|
||||||
{
|
{
|
||||||
@@ -60,9 +67,10 @@ interface Repository
|
|||||||
* ($key is 'flasher.filter' ? array<string, mixed> :
|
* ($key is 'flasher.filter' ? array<string, mixed> :
|
||||||
* ($key is 'flasher.presets' ? array<string, PresetType> :
|
* ($key is 'flasher.presets' ? array<string, PresetType> :
|
||||||
* ($key is 'flasher.plugins' ? array<string, PluginType> :
|
* ($key is 'flasher.plugins' ? array<string, PluginType> :
|
||||||
|
* ($key is 'flasher.themes' ? array<string, ThemeType> :
|
||||||
* ($key is 'flasher.flash_bag' ? array<string, string[]> :
|
* ($key is 'flasher.flash_bag' ? array<string, string[]> :
|
||||||
* ($key is 'flasher.excluded_paths' ? list<non-empty-string> :
|
* ($key is 'flasher.excluded_paths' ? list<non-empty-string> :
|
||||||
* mixed))))))))
|
* mixed)))))))))
|
||||||
*/
|
*/
|
||||||
public function get(string|array $key, mixed $default = null): mixed;
|
public function get(string|array $key, mixed $default = null): mixed;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user