mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
The shown example would lead to an error:
```php
Livewire\Features\SupportTesting\Testable::{closure:Filament\Schemas\Testing\TestsSchemas::assertSchemaComponentExists():25}(): Argument #2 ($schema) must be of type ?string, Closure given,
```
because the 2nd parameter is expected to be a `Schema`
I suppose there is two options now, adding `null` as 2nd parameter in the examples or simply using named arguments. Named arguments looked like the better approach 😊