Skip to content

Commit

Permalink
Merge pull request #18 from antistatique/feature/remove-deps--sensiol…
Browse files Browse the repository at this point in the history
…abs/security-checker
  • Loading branch information
WengerK authored Jul 12, 2023
2 parents 73af053 + 1e42869 commit 91a9092
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- add dependabot

### Removed
- remove sensiolabs/security-checker from direct dependency

### Security
- update friendsofphp/php-cs-fixer (v3.4.0 => v3.21.1)

## [0.0.1] - 2023-07-12
### Fixed
- fixed deprecations for development
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
"require-dev": {
"phpunit/phpunit": "^9.0.0",
"phpunit/php-code-coverage": "^9.2.0",
"friendsofphp/php-cs-fixer": "^3.0",
"friendsofphp/php-cs-fixer": "^3.21",
"phpmd/phpmd": "^2.8",
"sebastian/phpcpd": "^6.0",
"sensiolabs/security-checker": "^5.0",
"php-coveralls/php-coveralls": "^2.1",
"php-mock/php-mock-phpunit": "^2.4",
"vimeo/psalm": "^4.29",
Expand Down
8 changes: 3 additions & 5 deletions tests/Traits/InvokeMethodTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Antistatique\Swisstopo\Tests\Traits;

use ReflectionClass;

/**
* Provides a function to invoke protected/private methods of a class.
*/
Expand All @@ -21,14 +19,14 @@ trait InvokeMethodTrait
* @param array $protected_properties
* Array of values that should be set on protected properties
*
* @throws \ReflectionException
*
* @return mixed
* Method return
*
* @throws \ReflectionException
*/
protected function invokeMethod(&$object, $method_name, array $parameters = [], array $protected_properties = [])
{
$reflection = new ReflectionClass(\get_class($object));
$reflection = new \ReflectionClass(\get_class($object));

foreach ($protected_properties as $property => $value) {
$property = $reflection->getProperty($property);
Expand Down

0 comments on commit 91a9092

Please sign in to comment.