Skip to content

TypeFactory::build() support #45

@dereuromark

Description

@dereuromark
TypeFactory::build('datetime')
    ->setUserTimezone(Configure::readOrFail('App.defaultOutputTimezone'));

yields

  52     Call to an undefined method Cake\Database\TypeInterface::setUserTimezone().  
         🪪 method.notFound

is it possible for phpstan to learn also about static methods and that it is that concrete DateTimeType ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions