Skip to content

Commit

Permalink
Merge branch 'release/2.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelcom committed Mar 24, 2022
2 parents c0142e4 + acfb349 commit 131785c
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .php_cs → .php-cs-fixer.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
->exclude('vendor')
->in(__DIR__);

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setUsingCache(false)
->setRules(array(
'@PhpCsFixer' => true,
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 2.0.4 - 2022/03/24
- Upgrade PHP CS Fixer

## 2.0.3 - 2022/03/24
- Update badges
- Remove Travis CI settings
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"phpstan": "vendor/bin/phpstan analyze src --level=6"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^9"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Created.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Created extends Element
{
const NAME = 'Created';
public const NAME = 'Created';

public function __construct(int $timestamp, string $namespace = self::NS_WSSU)
{
Expand Down
12 changes: 6 additions & 6 deletions src/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
*/
class Element
{
const NS_WSSE = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
public const NS_WSSE = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';

const NS_WSSE_NAME = 'wsse';
public const NS_WSSE_NAME = 'wsse';

const NS_WSSU = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd';
public const NS_WSSU = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd';

const NS_WSSU_NAME = 'wssu';
public const NS_WSSU_NAME = 'wssu';

protected string $name = '';

Expand Down Expand Up @@ -79,7 +79,7 @@ public function __construct(string $name, string $namespace, $value = null, arra
*
* @param bool $asDomElement returns elements as a \DOMElement or as a string
*
* @return DOMElement|string|false
* @return DOMElement|false|string
*/
protected function __toSend(bool $asDomElement = false)
{
Expand Down Expand Up @@ -207,7 +207,7 @@ public function setTimestampValue(int $timestampValue): self
/**
* Returns the element to send as WS-Security header.
*
* @return DOMElement|string|false
* @return DOMElement|false|string
*/
public function toSend()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Expires.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Expires extends Element
{
const NAME = 'Expires';
public const NAME = 'Expires';

public function __construct(int $timestamp, int $expiresIn = 3600, string $namespace = self::NS_WSSU)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Nonce.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

class Nonce extends Element
{
const NAME = 'Nonce';
public const NAME = 'Nonce';

const ATTRIBUTE_ENCODING_TYPE = 'EncodingType';
public const ATTRIBUTE_ENCODING_TYPE = 'EncodingType';

const NS_ENCODING = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary';
public const NS_ENCODING = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary';

public function __construct(string $nonce, string $namespace = self::NS_WSSE)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

class Password extends Element
{
const NAME = 'Password';
public const NAME = 'Password';

const ATTRIBUTE_TYPE = 'Type';
public const ATTRIBUTE_TYPE = 'Type';

const TYPE_PASSWORD_DIGEST = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest';
public const TYPE_PASSWORD_DIGEST = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest';

const TYPE_PASSWORD_TEXT = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText';
public const TYPE_PASSWORD_TEXT = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText';

protected string $typeValue;

Expand Down
10 changes: 5 additions & 5 deletions src/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

class Security extends Element
{
const NAME = 'Security';
public const NAME = 'Security';

const ATTRIBUTE_MUST_UNDERSTAND = ':mustunderstand';
public const ATTRIBUTE_MUST_UNDERSTAND = ':mustunderstand';

const ATTRIBUTE_ACTOR = ':actor';
public const ATTRIBUTE_ACTOR = ':actor';

const ENV_NAMESPACE = 'SOAP-ENV';
public const ENV_NAMESPACE = 'SOAP-ENV';

protected ?UsernameToken $usernameToken = null;

Expand All @@ -38,7 +38,7 @@ public function __construct(bool $mustUnderstand = false, ?string $actor = null,
*
* @param bool $asDomElement returns elements as a DOMElement or as a string
*
* @return DOMElement|string|false
* @return DOMElement|false|string
*/
protected function __toSend(bool $asDomElement = false)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Timestamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Timestamp extends Element
{
const NAME = 'Timestamp';
public const NAME = 'Timestamp';

protected ?Created $created;

Expand All @@ -24,7 +24,7 @@ public function __construct(string $namespace = self::NS_WSSU)
*
* @param bool $asDomElement returns elements as a DOMElement or as a string
*
* @return DOMElement|string|false
* @return DOMElement|false|string
*/
protected function __toSend(bool $asDomElement = false)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Username.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Username extends Element
{
const NAME = 'Username';
public const NAME = 'Username';

public function __construct(string $username, string $namespace = self::NS_WSSE)
{
Expand Down
6 changes: 3 additions & 3 deletions src/UsernameToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

class UsernameToken extends Element
{
const NAME = 'UsernameToken';
public const NAME = 'UsernameToken';

const ATTRIBUTE_ID = 'Id';
public const ATTRIBUTE_ID = 'Id';

protected ?Username $username = null;

Expand All @@ -32,7 +32,7 @@ public function __construct(?string $id = null, string $namespace = self::NS_WSS
*
* @param bool $asDomElement returns elements as a DOMElement or as a string
*
* @return DOMElement|string|false
* @return DOMElement|false|string
*/
protected function __toSend(bool $asDomElement = false)
{
Expand Down

0 comments on commit 131785c

Please sign in to comment.