Skip to content

Commit

Permalink
Merge pull request #58 from belgattitude/feat/invalid-array-access
Browse files Browse the repository at this point in the history
refactor(array-proxy): do not implement \ArrayAccess
  • Loading branch information
belgattitude authored Jul 10, 2020
2 parents 38ccc59 + 017c12a commit 2ae2d0b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.8.1 (2020-07-10)

### Changed

- ArrayProxy, do not implement \ArrayAccess anymore, in [#58](https://github.com/belgattitude/soluble-japha/pull/58)

### Dev

- [Q&A] update phpstan and cs-fixer, in [#58](https://github.com/belgattitude/soluble-japha/pull/58)

## 2.8.0 (2020-04-10)

### Removed
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
},
"require-dev" : {
"phpunit/phpunit": "^7.5",
"friendsofphp/php-cs-fixer": "^2.15",
"friendsofphp/php-cs-fixer": "^2.16.4",
"monolog/monolog": "^2.0",
"phpstan/phpstan": "^0.12.9",
"phpstan/phpstan": "^0.12.32",
"phpstan/phpstan-strict-rules": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"belgattitude/pjbserver-tools": "^3.0",
"belgattitude/pjbserver-tools": "^3.1",
"infection/infection": "^0.14"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/Soluble/Japha/Bridge/Driver/Pjb62/AbstractJava.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ public function offsetExists($idx, ...$args): bool
// suggest, let's try for a java method called offsetExists
// with all the provided parameters
array_unshift($args, $idx); // Will add idx at the beginning of args params

return $this->__call('offsetExists', $args);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Soluble/Japha/Bridge/Driver/Pjb62/ArrayProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

namespace Soluble\Japha\Bridge\Driver\Pjb62;

class ArrayProxy extends IteratorProxy implements \ArrayAccess
class ArrayProxy extends IteratorProxy
{
/**
* @param string $idx
Expand Down

0 comments on commit 2ae2d0b

Please sign in to comment.