Skip to content

Commit 01337dd

Browse files
authored
Avoid using deprecated accessor (uuid as prop) (#96)
* Avoid using deprecated accessor (`uuid` as prop) * Fix phpstan
1 parent ead0957 commit 01337dd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=7.2",
2020
"cakephp/cakephp": "^4.0",
21-
"fakerphp/faker": "^1.13",
21+
"fakerphp/faker": "^1.15",
2222
"vierge-noire/cakephp-test-suite-light": "^2.1"
2323
},
2424
"require-dev": {

src/Factory/BaseFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ private function getSaveOptions(): array
364364
*/
365365
protected function persistMany(array $entities)
366366
{
367-
/** @phpstan-ignore-next-line */
368367
return $this->getTable()->saveManyOrFail($entities, $this->getSaveOptions());
369368
}
370369

src/Factory/DataCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public function generateRandomPrimaryKey(string $columnType)
445445
switch ($columnType) {
446446
case 'uuid':
447447
case 'string':
448-
$res = $this->getFactory()->getFaker()->uuid;
448+
$res = $this->getFactory()->getFaker()->uuid();
449449
break;
450450
case 'biginteger':
451451
$res = mt_rand(0, intval('9223372036854775807'));

0 commit comments

Comments
 (0)