Skip to content

Commit

Permalink
Update PHP dependencies.
Browse files Browse the repository at this point in the history
Update PHP dependencies and change the Psalm dependency to use the
self-contained PHP archive version to fix dependency conflicts (for more
information, see <vimeo/psalm#11112>).
  • Loading branch information
damiendart committed Nov 12, 2024
1 parent 9b0d0dc commit a27ff28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ tasks:

static-analysis:php:psalm:
cmds:
- 'vendor/bin/psalm --no-diff --show-info=true --stats'
- 'vendor/bin/psalm.phar --no-diff --show-info=true --stats'
desc: 'Analyse PHP files with Psalm'

test:
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
"php": "^8.2",
"psr/clock": "^1.0",
"psr/event-dispatcher": "^1.0",
"ramsey/uuid": "^4.7.5"
"ramsey/uuid": "^4.7.6"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.40.0",
"vimeo/psalm": "^5.16",
"phpstan/phpstan": "^1.10.45",
"phpstan/phpstan-strict-rules": "^1.5",
"phpunit/phpunit": "^10.4.2"
"friendsofphp/php-cs-fixer": "^3.64.0",
"phpstan/phpstan": "^2.0.1",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^11.4.3",
"psalm/phar": "^5.26.1"
},
"type": "library"
}
3 changes: 0 additions & 3 deletions src/Clocks/SystemClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public function __construct(?\DateTimeZone $timezone = null)
$this->timezone = $timezone;
}

/**
* @throws \Exception
*/
public function now(): \DateTimeImmutable
{
return new \DateTimeImmutable('now', $this->timezone);
Expand Down

0 comments on commit a27ff28

Please sign in to comment.