Releases: squirrelphp/entities
Releases · squirrelphp/entities
v0.9: Restructure and move parts to queries library
- Move Action directory to Builder directory - Use interface and trait for flattened fields from queries library - Add more PHPCS rules and adjust source code accordingly
Add psalm annotations + flattened fields amendmend
- Add first psalm-immutable and psalm-pure annotations
- Additional tests to make sure flattened fields all had
a sensible type - Add path coverage to code coverage composer command
v0.8.4: Only update .gitignore if necessary
Generated repositories are added to .gitignore, but up till now that file was always recreated/written to again. Now it is only updated when there was a change. Also adjust a type hint to be more accurate in InsertOrUpdate query builder.
Improve flattened fields with types
- Coerce values that can sensibly be coerced
- Convert the functions into a trait so they can
be shared between the three select classes - Adjust tests accordingly
Adjust repositories generator
Add missing getFlattenedFields functions.
Add flattened fields with types
New functions in select builder class:
- getFlattenedIntegerFields
- getFlattenedFloatFields
- getFlattenedStringFields
- getFlattenedBooleanFields
Adjust interface for flattenFields option
flattenFields is no option anymore, instead there is the fetchAllAndFlatten function.
v0.7.1: Remove template syntax because of PHPStan
PHPStan seems to misinterpret the syntax and there is no way to give this syntax to psalm while not causing the errors in PHPStan.
Leverage PHP 7.4 features
- Remove type and nullable annotation options, infer them automatically from property types
- Property types are now mandatory because of this
- Some cleanup in configuration and some more usage of PHP 7.4 features in code
v0.6.9: Improve dev configuration & upgrade PHPStan
- Upgrade to PHPStan 0.12 and make needed changes - Add PHP 7.4 to Travis - No changes to usage of this library