The first Parameter of the constructor, the faultcode, of SoapFault must be a string. Otherwise it will lead to an error.
<?php
throw new SoapFault(1, "Error message!"); // wrong
throw new SoapFault("1", "Error message!"); // right
?>
(PHP 5, PHP 7)
SoapFault::__construct — SoapFault constructor
$code
, string $string
, string|null $actor
= null
, mixed $details
= null
, string|null $name
= null
, mixed $headerFault
= null
)Această funcție este pseudonim pentru: SoapFault::SoapFault()
The first Parameter of the constructor, the faultcode, of SoapFault must be a string. Otherwise it will lead to an error.
<?php
throw new SoapFault(1, "Error message!"); // wrong
throw new SoapFault("1", "Error message!"); // right
?>