We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a320a0 commit d6503aeCopy full SHA for d6503ae
2 files changed
src/Crud/Table.php
@@ -61,9 +61,7 @@ public function readOne($primary)
61
throw new NotFoundException('Record not found');
62
}
63
64
- $row = $this->filterRow($row);
65
-
66
- return $row;
+ return $this->filterRow($row);
67
68
69
/**
tests/unit/Crud/TableTest.php
@@ -60,7 +60,7 @@ public function tearDown(): void
60
*/
public function testGetPrimaryKey()
{
- self::assertTrue(array_key_exists('id', $this->crudTable->getPrimaryKey()));
+ self::assertTrue(array_search('id', $this->crudTable->getPrimaryKey()) !== false);
0 commit comments