Skip to content

Commit a65c39d

Browse files
committed
Ajustes
1 parent 02c1f1c commit a65c39d

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

phpstan-baseline81.neon

-9
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ parameters:
7070
count: 2
7171
path: src/Soap/SoapBase.php
7272

73-
-
74-
message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#"
75-
count: 1
76-
path: src/Soap/SoapBase.php
77-
7873
-
7974
message: "#^Parameter \\#5 \\$oneWay \\(int\\) of method NFePHP\\\\Common\\\\Soap\\\\SoapClientExtended\\:\\:__doRequest\\(\\) should be compatible with parameter \\$oneWay \\(bool\\) of method SoapClient\\:\\:__doRequest\\(\\)$#"
8075
count: 1
@@ -130,8 +125,4 @@ parameters:
130125
count: 1
131126
path: src/Tags/MakeBase.php
132127

133-
-
134-
message: "#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#"
135-
count: 1
136-
path: src/Tags/Tag.php
137128

src/Soap/SoapBase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ private function mountSoapHeaders($envelopPrefix, $header = null)
482482
'<%s:Header><%s xmlns="%s">%s</%s></%s:Header>',
483483
$envelopPrefix,
484484
$header->name,
485-
$header->namespace === null ? '' : $header->namespace,
485+
$header->namespace == null ? '' : $header->namespace,
486486
$headerItems,
487487
$header->name,
488488
$envelopPrefix

src/Tags/Tag.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ protected function builder(&$node, $std, $parameters)
216216
*/
217217
protected function formater($value, $format = null)
218218
{
219-
if (empty($format) || !isset($value)) {
219+
if (empty($format) || $value == null) {
220220
return $value;
221221
}
222222
if (!is_numeric($value)) {

0 commit comments

Comments
 (0)