Skip to content

TypeFactory::build() support聽#45

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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