Skip to content

Releases: ekvedaras/class-factory-phpstorm

v2.0.4

16 Feb 12:48
8fe84a2
Compare
Choose a tag to compare

Fixed

  • Better resolve if method belongs to a class factory, so things like Class::factory()->make(['prop']) would work.

v2.0.3

04 Dec 19:36
c52db79
Compare
Choose a tag to compare

Fixed

  • Handle array types more loosely so string[] vs array would be acceptable
  • Handle boolean types

v2.0.2

27 Nov 09:16
cd59cca
Compare
Choose a tag to compare

Fixed

  • Incorrect reports of unknown columns when using nested states
  • Class property inspection when using nested states
  • Class property completion when using nested states

v2.0.1

02 Nov 19:58
e774c6d
Compare
Choose a tag to compare

Fixed

  • Handle nullable types (#13)
  • Always complete the type before comparing with property type
  • Edge case with class reference resolving (#12)

v2.0.0

02 Nov 09:20
4f6a0ef
Compare
Choose a tag to compare

Added

  • Detect when property type inside factory does not match class (or factory definition) property type
  • Support for ClosureValue

Changed

  • Refactored internals (not fully done yet)

v1.3.0

08 Oct 10:05
72e134d
Compare
Choose a tag to compare

Added

  • Support classes with not constructor (Spatie's DTOs for example)

v1.2.1

30 Sep 08:22
02c9bb4
Compare
Choose a tag to compare

Updated

  • Remove upper build limit to allow EAP usage.

v1.2.0

14 Sep 08:14
a1d8903
Compare
Choose a tag to compare

Added

  • Detect missing class constructor property definitions.

v1.1.4

12 Sep 12:09
332d55a
Compare
Choose a tag to compare

Fixed

  • Complete properties in returned array keys of directly passed closure.
  • Detect unknown properties in return array keys when closure is passed directly to class factory method instead of
    as an array hash value.
  • Resolve references in returned array keys of directly passed closure.

v1.1.3

11 Sep 07:52
abfd7ad
Compare
Choose a tag to compare

Fixed

  • Do not crash when closure has no parameters (#5)