Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php class AdminAssets { public const ASSETS = [ 'js' => [ 'foo-script' => [ 'src' => 'file.js', ], 'bar-script' => [ 'src' => 'file.js', ], ], ]; /** * @param key-of<ASSETS['js']> $key * * @return void */ public static function show(string $key) { } } AdminAssets::show('wrong');
Snippet created on February 19 2024 at 10:55 UTC
Settings
Get link