Skip to content

Commit ffa2361

Browse files
committed
Merge branch 'release/1.0.5'
2 parents a1f77d3 + c8db90a commit ffa2361

22 files changed

+105
-105
lines changed

.php_cs renamed to .php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
->exclude('vendor')
55
->in(__DIR__);
66

7-
return PhpCsFixer\Config::create()
7+
return (new PhpCsFixer\Config())
88
->setUsingCache(false)
99
->setRules(array(
1010
'@PhpCsFixer' => true,

.travis.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.0.5 - 2022/03/24
4+
- Update PHP CS Fixer and corresponding setting file
5+
- Add PHPStan
6+
37
## 1.0.4 - 2021/07/14
48
- issue #3 - Choice tag must ignore sequence tag
59

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
55
[![License](https://poser.pugx.org/wsdltophp/wsdlhandler/license)](https://packagist.org/packages/wsdltophp/wsdlhandler)
66
[![Latest Stable Version](https://poser.pugx.org/wsdltophp/wsdlhandler/version.png)](https://packagist.org/packages/wsdltophp/wsdlhandler)
7-
[![Build Status](https://travis-ci.com/WsdlToPhp/WsdlHandler.svg)](https://travis-ci.com/github/WsdlToPhp/WsdlHandler)
7+
[![TeamCity build status](https://teamcity.mikael-delsol.fr/app/rest/builds/buildType:id:WsdlHandler_Build/statusIcon.svg)](https://github.com/WsdlToPhp/WsdlHandler)
88
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WsdlToPhp/WsdlHandler/badges/quality-score.png)](https://scrutinizer-ci.com/g/WsdlToPhp/WsdlHandler/)
99
[![Code Coverage](https://scrutinizer-ci.com/g/WsdlToPhp/WsdlHandler/badges/coverage.png)](https://scrutinizer-ci.com/g/WsdlToPhp/WsdlHandler/)
1010
[![Total Downloads](https://poser.pugx.org/wsdltophp/wsdlhandler/downloads)](https://packagist.org/packages/wsdltophp/wsdlhandler)
1111
[![StyleCI](https://styleci.io/repos/87977980/shield)](https://styleci.io/repos/87977980)
12-
[![SymfonyInsight](https://insight.symfony.com/projects/3dd23426-0808-4715-9a11-e51dc84cb0b4/mini.svg)](https://insight.symfony.com/projects/3dd23426-0808-4715-9a11-e51dc84cb0b4)
12+
[![SymfonyInsight](https://insight.symfony.com/projects/b3232a2b-83c4-4546-92ae-c3f1357f62e9/mini.svg)](https://insight.symfony.com/projects/b3232a2b-83c4-4546-92ae-c3f1357f62e9)
1313

1414
WsdlHandler uses the [decorator design pattern](https://en.wikipedia.org/wiki/Decorator_pattern) upon [DomHandler](https://github.com/WsdlToPhp/DomHandler).
1515

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"wsdltophp/domhandler": "~2.0"
2727
},
2828
"require-dev": {
29-
"friendsofphp/php-cs-fixer": "~2.0",
29+
"friendsofphp/php-cs-fixer": "~3.0",
30+
"phpstan/phpstan": "^1.4",
3031
"phpunit/phpunit": "^9"
3132
},
3233
"config": {
@@ -44,7 +45,8 @@
4445
},
4546
"scripts": {
4647
"test": "vendor/bin/phpunit",
47-
"lint": "vendor/bin/php-cs-fixer fix --ansi --diff --verbose"
48+
"lint": "vendor/bin/php-cs-fixer fix --ansi --diff --verbose",
49+
"phpstan": "vendor/bin/phpstan analyze src --level=2"
4850
},
4951
"support": {
5052
"email": "[email protected]"

phpstan.neon.dist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Method WsdlToPhp\\\\DomHandler\\\\AbstractDomDocumentHandler\\:\\:getElementByNameAndAttributes\\(\\) invoked with 3 parameters, 2 required\\.$#"
5+
count: 1
6+
path: src/Tag/AbstractTagOperationElement.php
7+
8+
-
9+
message: "#^Method WsdlToPhp\\\\DomHandler\\\\AbstractDomDocumentHandler\\:\\:getElementByNameAndAttributes\\(\\) invoked with 3 parameters, 2 required\\.$#"
10+
count: 1
11+
path: src/Tag/TagPart.php
12+

src/AbstractDocument.php

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,53 @@
1212

1313
abstract class AbstractDocument extends DomDocumentHandler
1414
{
15-
const TAG_ADDRESS = 'address';
16-
const TAG_ALL = 'all';
17-
const TAG_ANNOTATION = 'annotation';
18-
const TAG_ANY = 'any';
19-
const TAG_ANY_ATTRIBUTE = 'anyAttribute';
20-
const TAG_APPINFO = 'appinfo';
21-
const TAG_ATTRIBUTE = 'attribute';
22-
const TAG_ATTRIBUTE_GROUP = 'attributeGroup';
23-
const TAG_BINDING = 'binding';
24-
const TAG_BODY = 'body';
25-
const TAG_CHOICE = 'choice';
26-
const TAG_COMPLEX_CONTENT = 'complexContent';
27-
const TAG_COMPLEX_TYPE = 'complexType';
28-
const TAG_DEFINITIONS = 'definitions';
29-
const TAG_DOCUMENTATION = 'documentation';
30-
const TAG_ELEMENT = 'element';
31-
const TAG_ENUMERATION = 'enumeration';
32-
const TAG_EXTENSION = 'extension';
33-
const TAG_FIELD = 'field';
34-
const TAG_GROUP = 'group';
35-
const TAG_HEADER = 'header';
36-
const TAG_IMPORT = 'import';
37-
const TAG_INCLUDE = 'include';
38-
const TAG_INPUT = 'input';
39-
const TAG_KEY = 'key';
40-
const TAG_KEYREF = 'keyref';
41-
const TAG_LIST = 'list';
42-
const TAG_MEMBER_TYPES = 'memberTypes';
43-
const TAG_MESSAGE = 'message';
44-
const TAG_NOTATION = 'notation';
45-
const TAG_OPERATION = 'operation';
46-
const TAG_OUTPUT = 'output';
47-
const TAG_PART = 'part';
48-
const TAG_PORT = 'port';
49-
const TAG_PORT_TYPE = 'portType';
50-
const TAG_REDEFINE = 'redefine';
51-
const TAG_RESTRICTION = 'restriction';
52-
const TAG_SELECTOR = 'selector';
53-
const TAG_SEQUENCE = 'sequence';
54-
const TAG_SCHEMA = 'schema';
55-
const TAG_SIMPLE_CONTENT = 'simpleContent';
56-
const TAG_SIMPLE_TYPE = 'simpleType';
57-
const TAG_TYPES = 'types';
58-
const TAG_UNION = 'union';
59-
const TAG_UNIQUE = 'unique';
15+
public const TAG_ADDRESS = 'address';
16+
public const TAG_ALL = 'all';
17+
public const TAG_ANNOTATION = 'annotation';
18+
public const TAG_ANY = 'any';
19+
public const TAG_ANY_ATTRIBUTE = 'anyAttribute';
20+
public const TAG_APPINFO = 'appinfo';
21+
public const TAG_ATTRIBUTE = 'attribute';
22+
public const TAG_ATTRIBUTE_GROUP = 'attributeGroup';
23+
public const TAG_BINDING = 'binding';
24+
public const TAG_BODY = 'body';
25+
public const TAG_CHOICE = 'choice';
26+
public const TAG_COMPLEX_CONTENT = 'complexContent';
27+
public const TAG_COMPLEX_TYPE = 'complexType';
28+
public const TAG_DEFINITIONS = 'definitions';
29+
public const TAG_DOCUMENTATION = 'documentation';
30+
public const TAG_ELEMENT = 'element';
31+
public const TAG_ENUMERATION = 'enumeration';
32+
public const TAG_EXTENSION = 'extension';
33+
public const TAG_FIELD = 'field';
34+
public const TAG_GROUP = 'group';
35+
public const TAG_HEADER = 'header';
36+
public const TAG_IMPORT = 'import';
37+
public const TAG_INCLUDE = 'include';
38+
public const TAG_INPUT = 'input';
39+
public const TAG_KEY = 'key';
40+
public const TAG_KEYREF = 'keyref';
41+
public const TAG_LIST = 'list';
42+
public const TAG_MEMBER_TYPES = 'memberTypes';
43+
public const TAG_MESSAGE = 'message';
44+
public const TAG_NOTATION = 'notation';
45+
public const TAG_OPERATION = 'operation';
46+
public const TAG_OUTPUT = 'output';
47+
public const TAG_PART = 'part';
48+
public const TAG_PORT = 'port';
49+
public const TAG_PORT_TYPE = 'portType';
50+
public const TAG_REDEFINE = 'redefine';
51+
public const TAG_RESTRICTION = 'restriction';
52+
public const TAG_SELECTOR = 'selector';
53+
public const TAG_SEQUENCE = 'sequence';
54+
public const TAG_SCHEMA = 'schema';
55+
public const TAG_SIMPLE_CONTENT = 'simpleContent';
56+
public const TAG_SIMPLE_TYPE = 'simpleType';
57+
public const TAG_TYPES = 'types';
58+
public const TAG_UNION = 'union';
59+
public const TAG_UNIQUE = 'unique';
6060

61-
const ATTRIBUTE_TARGET_NAMESPACE = 'targetNamespace';
61+
public const ATTRIBUTE_TARGET_NAMESPACE = 'targetNamespace';
6262

6363
public function getNamespaceUri(string $namespace): string
6464
{

src/Tag/AbstractTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
abstract class AbstractTag extends ElementHandler
1515
{
16-
const MAX_DEEP = 5;
16+
public const MAX_DEEP = 5;
1717

1818
public function getDomDocumentHandler(): AbstractDocument
1919
{

src/Tag/AbstractTagImport.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
abstract class AbstractTagImport extends Tag
88
{
9-
const ATTRIBUTE_LOCATION = 'location';
10-
const ATTRIBUTE_SCHEMA_LOCATION = 'schemaLocation';
11-
const ATTRIBUTE_SCHEMA_LOCATION_ = 'schemalocation';
9+
public const ATTRIBUTE_LOCATION = 'location';
10+
public const ATTRIBUTE_SCHEMA_LOCATION = 'schemaLocation';
11+
public const ATTRIBUTE_SCHEMA_LOCATION_ = 'schemalocation';
1212

1313
public function getLocationAttributeValue(): string
1414
{

src/Tag/AbstractTagOperationElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
abstract class AbstractTagOperationElement extends Tag
1010
{
11-
const ATTRIBUTE_MESSAGE = 'message';
11+
public const ATTRIBUTE_MESSAGE = 'message';
1212

1313
public function getParentOperation(): ?TagOperation
1414
{

0 commit comments

Comments
 (0)