Skip to content

Commit 6e49dcf

Browse files
committed
Resolve "PHPDoc tag @throws with type INTERMediator\FileMakerServer\RESTAPI\Supporting\Exception is not subtype of Throwable" detected by PHPStan
1 parent f12486d commit 6e49dcf

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
include:
1818
- current-level: 0
1919
steps:
20-
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
20+
- uses: actions/checkout@v4
2121

2222
- name: Setup PHP
23-
uses: shivammathur/setup-php@72ae4ccbe57f82bbe08411e84e2130bd4ba1c10f # v2.25.5
23+
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
2424
with:
25-
php-version: '8.1'
25+
php-version: '8.3'
2626

2727
- name: Install PHPStan
2828
run: composer require --dev phpstan/phpstan

src/Supporting/CommunicationProvider.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public function justifyRequest($request)
361361
}
362362

363363
/**
364-
* @throws Exception In case of any error, an exception arises.
364+
* @throws \Exception In case of any error, an exception arises.
365365
* @ignore
366366
*/
367367
public function getProductInfo()
@@ -386,7 +386,7 @@ public function getProductInfo()
386386
}
387387

388388
/**
389-
* @throws Exception In case of any error, an exception arises.
389+
* @throws \Exception In case of any error, an exception arises.
390390
* @ignore
391391
*/
392392
public function getDatabaseNames()
@@ -419,7 +419,7 @@ public function getDatabaseNames()
419419
}
420420

421421
/**
422-
* @throws Exception In case of any error, an exception arises.
422+
* @throws \Exception In case of any error, an exception arises.
423423
* @ignore
424424
*/
425425
public function getLayoutNames()
@@ -445,7 +445,7 @@ public function getLayoutNames()
445445
}
446446

447447
/**
448-
* @throws Exception In case of any error, an exception arises.
448+
* @throws \Exception In case of any error, an exception arises.
449449
* @ignore
450450
*/
451451
public function getScriptNames()
@@ -471,7 +471,7 @@ public function getScriptNames()
471471
}
472472

473473
/**
474-
* @throws Exception In case of any error, an exception arises.
474+
* @throws \Exception In case of any error, an exception arises.
475475
* @ignore
476476
*/
477477
public function login()
@@ -512,7 +512,7 @@ public function login()
512512

513513
/**
514514
*
515-
* @throws Exception In case of any error, an exception arises.
515+
* @throws \Exception In case of any error, an exception arises.
516516
* @ignore
517517
*/
518518
public function logout()
@@ -574,7 +574,7 @@ private function getOAuthIdentifier($provider)
574574
* @param array $request
575575
* @param array $addHeader
576576
* @param boolean $isSystem for Metadata
577-
* @throws Exception In case of any error, an exception arises.
577+
* @throws \Exception In case of any error, an exception arises.
578578
* @ignore
579579
*/
580580
public function callRestAPI($params, $isAddToken, $method = 'GET', $request = null, $addHeader = null, $isSystem = false, $directPath = false)

src/Supporting/FileMakerLayout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ public function uploadFile($filePath, $recordId, $containerFieldName, $container
475475
* information is set under the 'metaData' property. There is no information about portals. Ex.:
476476
* {"metaData": [{"name": "id","type": "normal","result": "number","global": "false","repetitions": 1,"id": "1"},
477477
*{"name": "name","type": "normal","result": "text","global": "false","repetitions": 1,"id": "2"},,....,]}
478-
* @throws Exception In case of any error, an exception arises.
478+
* @throws \Exception In case of any error, an exception arises.
479479
*/
480480
public function getMetadataOld()
481481
{
@@ -598,4 +598,4 @@ public function getScriptResultPresort()
598598
return $this->restAPI->scriptResultPresort;
599599
}
600600

601-
}
601+
}

src/Supporting/FileMakerRelation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public function getPortalNames()
374374
* @param string $toName The table occurrence name of the portal as the prefix of the field name.
375375
*
376376
* @return string|FileMakerRelation The field value as string, or the FileMakerRelation object of the portal.
377-
* @throws Exception The field specified in parameters doesn't exist.
377+
* @throws \Exception The field specified in parameters doesn't exist.
378378
* @see FMDataAPI::setFieldHTMLEncoding() Compatible mode for FileMaker API for PHP.
379379
*
380380
*/
@@ -609,4 +609,4 @@ public function rewind(): void
609609
{
610610
$this->pointer = 0;
611611
}
612-
}
612+
}

0 commit comments

Comments
 (0)