Skip to content

Latest commit

 

History

History
90 lines (71 loc) · 2.84 KB

CHANGELOG.md

File metadata and controls

90 lines (71 loc) · 2.84 KB

class-factory-phpstorm Changelog

[Unreleased]

[2.0.4]

Fixed

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

[2.0.3]

Fixed

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

[2.0.2]

Fixed

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

[2.0.1]

Fixed

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

[2.0.0]

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)

[1.3.0]

Added

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

[1.2.1]

Updated

  • Remove upper build limit to allow EAP usage.

[1.2.0]

Added

  • Detect missing class constructor property definitions.

[1.1.4]

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.

[1.1.3]

Fixed

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

[1.1.2]

Fixed

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

[1.1.1]

Fixed

  • Potential fix for Indexing process should not rely on non-indexed file data (#2)

[1.1.0]

Added

  • Complete properties for attributes array keys in closure states.
  • Resolve references for attributes array keys in closure states.
  • Detect unknown properties in state and make methods both inside and outside factory.
  • Detect unknown properties in attributes array keys in closure states.
  • Resolve attributes array value types from factory definition.

[1.0.0]

Added

Fixed

  • NullPointerException cast (#1)