Skip to content

Commit f9c5b38

Browse files
committed
Update dependencies and change linter standard
1 parent 7021425 commit f9c5b38

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.3.0] - 2020-03-25
8+
### Changed
9+
- Update dependencies to be compatible with PHP 7.4
10+
- Switch to PSR-12 linting
11+
712
## [2.2.1] - 2019-03-05
813
### Added
914
- `validate` function for checking the `isRequired` flag for Bindings

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"php": ">=7.0"
2020
},
2121
"require-dev": {
22-
"karriere/code-quality": "^3.0",
22+
"karriere/code-quality": "^5.0",
2323
"sebastian/comparator": "^1.1",
2424
"sebastian/exporter": "^2.0",
2525
"sebastian/recursion-context": "^2.0"
2626
},
2727
"scripts": {
2828
"test": "vendor/bin/phpspec run",
29-
"lint": "vendor/bin/phpcs src/ --standard=PSR2"
29+
"lint": "vendor/bin/phpcs src/ --standard=PSR12"
3030
}
3131
}

src/Binding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct($property, $jsonField, $type, $isRequired = false)
4747
*
4848
* @return bool
4949
*/
50-
public function validate($jsonData) : bool
50+
public function validate($jsonData): bool
5151
{
5252
return !$this->isRequired || array_key_exists($this->jsonField, $jsonData);
5353
}

src/Bindings/CallbackBinding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct($property, $callback)
2626
/**
2727
* {@inheritdoc}
2828
*/
29-
public function validate($jsonData) : bool
29+
public function validate($jsonData): bool
3030
{
3131
return true;
3232
}

src/Bindings/RawBinding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct($property)
1919
/**
2020
* {@inheritdoc}
2121
*/
22-
public function validate($jsonData) : bool
22+
public function validate($jsonData): bool
2323
{
2424
return true;
2525
}

0 commit comments

Comments
 (0)