Skip to content

Commit b289a90

Browse files
authored
Merge pull request msyk#110 from matsuo/reduce-errors-detected-by-phpstan
Reduce errors detected by PHPStan
2 parents f231da2 + d8c035c commit b289a90

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Supporting/FileMakerLayout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function query(array|null $condition = null,
178178
int $range = 0,
179179
array|null $portal = null,
180180
array|null $script = null,
181-
int $dateformats = null): FileMakerRelation|null
181+
int|null $dateformats = null): FileMakerRelation|null
182182
{
183183
if ($this->restAPI->login()) {
184184
$headers = ["Content-Type" => "application/json"];

src/Supporting/FileMakerRelation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @property string $<<field_name>> The field value named as the property name.
1616
* @property FileMakerRelation $<<portal_name>> FileMakerRelation object associated with the property name.
1717
* The table occurrence name of the portal can be the 'portal_name,' and also the object name of the portal.
18-
* Ver * @version 32
18+
* @version 32
1919
* @author Masayuki Nii <nii@msyk.net>
2020
* @copyright 2017-2024 Masayuki Nii (Claris FileMaker is registered trademarks of Claris International Inc. in the U.S. and other countries.)
2121
*/

test/phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ includes:
33

44
parameters:
55
reportUnmatchedIgnoredErrors: false
6+
universalObjectCratesClasses:
7+
- INTERMediator\FileMakerServer\RESTAPI\FMDataAPI

0 commit comments

Comments
 (0)