Skip to content

0.4.4

Choose a tag to compare

@alies-dev alies-dev released this 14 Nov 11:59
· 16 commits to master since this release
aaf724a

ClassLikeStorage mixin API changes for vimeo/psalm#13694.

Changed:

  • ClassLikeStorage::$namedMixins and $templatedMixins hold only the mixins the class declares (plus those plugins add); a class no longer gets the lists of its parent. Mixins of traits and parent classes are looked up at analysis time.

Deprecated (will be removed in 0.5.0; read $namedMixins and $templatedMixins):

  • ClassLikeStorage::$transitiveNamedMixins (always empty)
  • ClassLikeStorage::$inheritedNamedMixinDeclaringClasses (always empty)
  • ClassLikeStorage::$mixin_declaring_fqcln (never set or read)
  • ClassLikeStorage::getNamedMixinsForLookup() (returns $namedMixins)
  • ClassLikeStorage::getNamedMixinDeclaringClass() (the class whose templates the mixin's type arguments use, else the class itself)
  • ClassLikeStorage::getOwnMixins() (the mixins the class declares, then those plugins added)