File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/Phpro/SoapClient/CodeGenerator Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ parameters:
14
14
phpunit : ~
15
15
phplint : ~
16
16
phpstan :
17
- level : 4
17
+ level : 3
18
18
configuration : " phpstan.neon"
19
19
ignore_patterns :
20
20
- " spec/"
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function __construct(RuleSetInterface $ruleSet)
41
41
*/
42
42
public function generate (FileGenerator $ file , $ client ): string
43
43
{
44
- $ class = $ file ->getClass () ?? new ClassGenerator ();
44
+ $ class = $ file ->getClass () ?: new ClassGenerator ();
45
45
$ class ->setNamespaceName ($ client ->getNamespace ());
46
46
$ class ->setName ($ client ->getName ());
47
47
$ methods = $ client ->getMethodMap ();
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function __construct(RuleSetInterface $ruleSet)
39
39
*/
40
40
public function generate (FileGenerator $ file , $ type ): string
41
41
{
42
- $ class = $ file ->getClass () ?? new ClassGenerator ();
42
+ $ class = $ file ->getClass () ?: new ClassGenerator ();
43
43
$ class ->setNamespaceName ($ type ->getNamespace ());
44
44
$ class ->setName ($ type ->getName ());
45
45
You can’t perform that action at this time.
0 commit comments