Skip to content

Getter return typehints

Compare
Choose a tag to compare
@hboomsma hboomsma released this 19 Jun 07:07
· 64 commits to master since this release

Added return typehints to getters.

This is backwards incompatible in the following cases:

  • if you have interfaces implemented by generated getters
  • if you have null values in non-nullable columns
  • if you mock these classes for unit tests without returning the proper return type for the getters. (By default Prophecy and PHPUnit mock objects return null for method calls)