Skip to content

Commit

Permalink
Merge pull request #2 from danog/1.9.x
Browse files Browse the repository at this point in the history
Fix e2e tests
  • Loading branch information
azjezz committed Nov 10, 2022
2 parents b17b0f5 + 3dd0596 commit 0194ec3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Psl/Env/current_exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
function current_exec(): string
{
$executable = (string) Filesystem\canonicalize((string) $_SERVER['SCRIPT_NAME']);
$executable = (string) Filesystem\canonicalize($_SERVER['SCRIPT_NAME'] ?? '');
// @codeCoverageIgnoreStart
if (Filesystem\is_symbolic_link($executable)) {
/** @psalm-suppress MissingThrowsDocblock */
Expand Down
1 change: 1 addition & 0 deletions src/Psl/Hash/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public function update(string $data): Context
$internal_context = hash_copy($this->internalContext);

// @codeCoverageIgnoreStart
/** @psalm-suppress ImpureFunctionCall */
if (!hash_update($internal_context, $data)) {
throw new Exception\RuntimeException('Unable to pump data into the active hashing context.');
}
Expand Down
2 changes: 1 addition & 1 deletion src/Psl/Iter/enumerate.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @param iterable<Tk, Tv> $iterable
*
* @return Iterator<int, array{0: Tk, 1: Tv}>
* @return Iterator<int, strict-array{0: Tk, 1: Tv}>
*
* @deprecated use `Vec\enumerate` instead.
* @see Vec\enumerate()
Expand Down
4 changes: 2 additions & 2 deletions src/Psl/Password/get_information.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* When passed in a valid hash created by an algorithm supported by `Psl\Password\hash()`,
* this function will return an array of information about that hash.
*
* @return array{
* @return strict-array{
* algorithm: string,
* options: array{cost: int}|array{memory_cost: int, time_cost: int, threads: int}
* options: strict-array{cost: int}|strict-array{memory_cost: int, time_cost: int, threads: int}
* }
*
* @pure
Expand Down

0 comments on commit 0194ec3

Please sign in to comment.