Skip to content

Commit d9a17bd

Browse files
committed
fix stan
1 parent 8e7713a commit d9a17bd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

phpstan.neon.dist

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ parameters:
2323
# for src/FieldSqlExpression.php
2424
- '~^Call to an undefined method Atk4\\Data\\Model\:\:expr\(\)\.$~'
2525
# for src/Model.php
26-
- '~^Call to an undefined method Atk4\\Data\\Persistence\:\:load\(\)\.$~'
27-
- '~^Call to an undefined method Atk4\\Data\\Persistence\:\:tryLoad\(\)\.$~'
28-
- '~^Call to an undefined method Atk4\\Data\\Persistence\:\:loadAny\(\)\.$~'
29-
- '~^Call to an undefined method Atk4\\Data\\Persistence\:\:tryLoadAny\(\)\.$~'
3026
- '~^Call to an undefined method Atk4\\Data\\Persistence\:\:update\(\)\.$~'
3127
- '~^Call to an undefined method Atk4\\Data\\Persistence\:\:insert\(\)\.$~'
3228
- '~^Call to an undefined method Atk4\\Data\\Persistence\:\:export\(\)\.$~'

src/Persistence/Array_/Join.php

+4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66

77
use Atk4\Data\Exception;
88
use Atk4\Data\Model;
9+
use Atk4\Data\Persistence;
910

1011
/**
1112
* Provides model joining functionality specific for the Array_ persistence.
13+
*
14+
* @property Persistence\_Array $persistence
15+
* @property static $join
1216
*/
1317
class Join extends Model\Join
1418
{

src/Persistence/Csv.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function typecastLoadRow(Model $model, array $row): array
239239
public function tryLoad(Model $model, $id): ?array
240240
{
241241
if ($id !== self::ID_LOAD_ANY) {
242-
throw new Error/*Exception*/ ('CSV Persistence does not support other than LOAD ANY mode'); // @TODO we can iterate...
242+
throw new \Error/*Exception*/ ('CSV Persistence does not support other than LOAD ANY mode'); // @TODO we can iterate...
243243
}
244244

245245
if (!$this->mode) {

0 commit comments

Comments
 (0)