Skip to content
Snippets Groups Projects
Commit 00c64f59 authored by David Prévot's avatar David Prévot
Browse files

New upstream version 3.0.2

parents 36923f66 f4171546
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [3.0.2] - 2022-10-27
### Fixed
- Added missing return types to docblocks (#44, #45)
## [3.0.1] - 2021-08-13 ## [3.0.1] - 2021-08-13
### Added ### Added
...@@ -51,7 +57,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -51,7 +57,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
**Initial release!** **Initial release!**
[Unreleased]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.0...main [Unreleased]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.2...main
[3.0.2]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.1...v3.0.2
[3.0.1]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.0...v3.0.1
[3.0.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v2.0.0...v3.0.0 [3.0.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v2.0.0...v3.0.0
[2.0.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.1.0...v2.0.0 [2.0.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.1.0...v2.0.0
[1.1.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.0.1...v1.1.0 [1.1.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.0.1...v1.1.0
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3",
"scrutinizer/ocular": "1.6.0", "scrutinizer/ocular": "1.6.0",
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3.5",
"vimeo/psalm": "^3.14" "vimeo/psalm": "^4.0.0"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
......
<?xml version="1.0"?> <?xml version="1.0"?>
<psalm <psalm
totallyTyped="false"
errorLevel="3" errorLevel="3"
resolveFromConfigFile="true" resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
......
...@@ -145,7 +145,7 @@ class Data implements DataInterface, ArrayAccess ...@@ -145,7 +145,7 @@ class Data implements DataInterface, ArrayAccess
*/ */
public function has(string $key): bool public function has(string $key): bool
{ {
$currentValue = &$this->data; $currentValue = $this->data;
foreach (self::keyToPathArray($key) as $currentKey) { foreach (self::keyToPathArray($key) as $currentKey) {
if ( if (
...@@ -154,7 +154,7 @@ class Data implements DataInterface, ArrayAccess ...@@ -154,7 +154,7 @@ class Data implements DataInterface, ArrayAccess
) { ) {
return false; return false;
} }
$currentValue = &$currentValue[$currentKey]; $currentValue = $currentValue[$currentKey];
} }
return true; return true;
...@@ -203,6 +203,8 @@ class Data implements DataInterface, ArrayAccess ...@@ -203,6 +203,8 @@ class Data implements DataInterface, ArrayAccess
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @return bool
*/ */
#[\ReturnTypeWillChange] #[\ReturnTypeWillChange]
public function offsetExists($key) public function offsetExists($key)
...@@ -212,6 +214,8 @@ class Data implements DataInterface, ArrayAccess ...@@ -212,6 +214,8 @@ class Data implements DataInterface, ArrayAccess
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @return mixed
*/ */
#[\ReturnTypeWillChange] #[\ReturnTypeWillChange]
public function offsetGet($key) public function offsetGet($key)
...@@ -223,6 +227,9 @@ class Data implements DataInterface, ArrayAccess ...@@ -223,6 +227,9 @@ class Data implements DataInterface, ArrayAccess
* {@inheritdoc} * {@inheritdoc}
* *
* @param string $key * @param string $key
* @param mixed $value
*
* @return void
*/ */
#[\ReturnTypeWillChange] #[\ReturnTypeWillChange]
public function offsetSet($key, $value) public function offsetSet($key, $value)
...@@ -232,6 +239,8 @@ class Data implements DataInterface, ArrayAccess ...@@ -232,6 +239,8 @@ class Data implements DataInterface, ArrayAccess
/** /**
* {@inheritdoc} * {@inheritdoc}
*
* @return void
*/ */
#[\ReturnTypeWillChange] #[\ReturnTypeWillChange]
public function offsetUnset($key) public function offsetUnset($key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment