Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
85aa0854
Commit
85aa0854
authored
Feb 17, 2021
by
Guillaume Perréal
Browse files
Corrige les défauts trouvés par PHPStan.
parent
4476805d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/php/Models/Types/Objects/Property.php
View file @
85aa0854
...
...
@@ -195,6 +195,6 @@ class Property implements \IteratorAggregate, \JsonSerializable
*/
public
static
function
createIdentifier
(
string
$name
,
string
$description
,
Type
$type
)
{
return
new
s
tatic
(
$name
,
$description
,
$type
,
true
,
false
,
true
);
return
new
s
elf
(
$name
,
$description
,
$type
,
true
,
false
,
true
);
}
}
src/php/Models/Types/Reference.php
View file @
85aa0854
...
...
@@ -22,6 +22,8 @@ declare(strict_types=1);
namespace
Irstea\NgModelGeneratorBundle\Models\Types
;
use
Irstea\NgModelGeneratorBundle\Exceptions\DomainException
;
/**
* Class Ref.
*/
...
...
@@ -71,6 +73,8 @@ class Reference extends AbstractType implements Deferred
return
$this
;
case
self
::
RESOLVED
:
return
$this
->
target
;
default
:
throw
new
DomainException
(
'invalid reference state: '
.
$this
->
state
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment