You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trait ClassStructureTrait
{
use ObjectItemTrait;
/** * Add union static here so nested object fields can be type hinted as such: * class Book extends ClassStructure { public Author $author; } * without getting a type warning from IDE (phpStorm). * * @return Wrapper|static */publicstaticfunctionschema()
class Schema extends JsonSchema implements MetaHolder, SchemaContract, HasDefault
{
/** * Add union int here so fields can be type hinted as such: * class Book extends ClassStructure { public int $id; } * without getting a type warning from IDE (phpStorm). * * @return static|int */publicstaticfunctioninteger()
// similar union typing should exist for the others like: string, boolean, number
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: