mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix phpstan
This commit is contained in:
parent
b4babd6fcb
commit
da7675c822
|
|
@ -21108,12 +21108,6 @@ parameters:
|
|||
count: 1
|
||||
path: ../../../htdocs/includes/odtphp/Segment.php
|
||||
|
||||
-
|
||||
message: '#^Property Segment\:\:\$name has no type specified\.$#'
|
||||
identifier: missingType.property
|
||||
count: 1
|
||||
path: ../../../htdocs/includes/odtphp/Segment.php
|
||||
|
||||
-
|
||||
message: '#^Property Segment\:\:\$odf has no type specified\.$#'
|
||||
identifier: missingType.property
|
||||
|
|
@ -21126,18 +21120,6 @@ parameters:
|
|||
count: 1
|
||||
path: ../../../htdocs/includes/odtphp/Segment.php
|
||||
|
||||
-
|
||||
message: '#^Property Segment\:\:\$xml has no type specified\.$#'
|
||||
identifier: missingType.property
|
||||
count: 1
|
||||
path: ../../../htdocs/includes/odtphp/Segment.php
|
||||
|
||||
-
|
||||
message: '#^Property Segment\:\:\$xmlParsed has no type specified\.$#'
|
||||
identifier: missingType.property
|
||||
count: 1
|
||||
path: ../../../htdocs/includes/odtphp/Segment.php
|
||||
|
||||
-
|
||||
message: '#^Class SegmentIterator implements generic interface RecursiveIterator but does not specify its types\: TKey, TValue$#'
|
||||
identifier: missingType.generics
|
||||
|
|
|
|||
|
|
@ -16,8 +16,24 @@ class SegmentException extends Exception
|
|||
*/
|
||||
class Segment implements IteratorAggregate, Countable
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $xml;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $savxml;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $xmlParsed = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
protected $children = array();
|
||||
protected $vars = array();
|
||||
|
|
@ -30,7 +46,7 @@ class Segment implements IteratorAggregate, Countable
|
|||
*
|
||||
* @param string $name name of the segment to construct
|
||||
* @param string $xml XML tree of the segment
|
||||
* @param string $odf odf
|
||||
* @param Odf $odf odf
|
||||
*/
|
||||
public function __construct($name, $xml, $odf)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user