Closed mringler closed 2 years ago
Uff, test fail because of problem with test setup:
Error: dealerdirect/phpcodesniffer-composer-installer contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe. You can run "composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer [true|false]" to enable it (true) or disable it explicitly and suppress this exception (false)
Not sure where this comes from or how to handle it
This is now solved, you can probably rebase
Oh, completely forgot about this. Merged in master, now tests run through
I'm getting warnings because declarations of
setPrimaryKey()
do not match between extending classes:setPrimaryKey(?int $key = NULL): void vs setPrimaryKey($pk): void
I am extending tables via concrete_inheritance behavior, and the parent table does not have a primary key. Apparently this leads to the parent class having a stub for setPrimaryKey(), which is defined differently than the function on the child class. Since the parent class has not PK declaration itself, and can be parent to tables with different PK types, it is not possible to insert a type hint there.
Fortunately, adding
setPrimaryKey()
to tables without PK has been marked as deprecated since 2011, so I think the problem can be easily solved by just removing that function.