Skip to content

Commit 5056a43

Browse files
committed
Some @throws fixes
1 parent d0f7031 commit 5056a43

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Resource/ModelParser.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Simples\Persistence\Field;
1212
use Simples\Persistence\Filter;
1313
use Simples\Persistence\Fusion;
14-
use function is_array;
1514

1615
/**
1716
* Class ModelParser
@@ -50,6 +49,7 @@ protected function parseFilterFields(array $data = []): array
5049
* @param array $filters
5150
* @param array $rules
5251
* @return array
52+
* @throws Exception
5353
*/
5454
protected function parseFilterRules(array $filters, array $rules): array
5555
{
@@ -91,6 +91,7 @@ protected function parseFilterValues(array $filters = []): array
9191
/**
9292
* @param array $fields
9393
* @return array
94+
* @throws SimplesRunTimeError
9495
*/
9596
protected function parseReadRelations(array $fields = []): array
9697
{
@@ -123,6 +124,7 @@ protected function parseReadRelations(array $fields = []): array
123124
* @param string $hashKey
124125
* @param bool $trash (false)
125126
* @return Record
127+
* @throws SimplesRunTimeError
126128
*/
127129
protected function previous(Record $record, string $hashKey, bool $trash = false): Record
128130
{
@@ -161,6 +163,7 @@ protected function getDestroyFilter(string $at, bool $trash = false): Filter
161163
* @param Record $previous (null)
162164
* @param bool $calculate (false)
163165
* @return Record
166+
* @throws SimplesRunTimeError
164167
*/
165168
public function configureRecord(
166169
string $action,
@@ -251,6 +254,7 @@ protected function getAvoid(): array
251254
/**
252255
* @param int $options
253256
* @return string
257+
* @throws SimplesRunTimeError
254258
*/
255259
public function getJSON(int $options = 0)
256260
{

0 commit comments

Comments
 (0)