Skip to content

Commit

Permalink
icanboogie/common update
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Nov 1, 2024
1 parent 9ddcea7 commit f4a2bd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: "3.2"
services:
app81:
build:
Expand Down
8 changes: 4 additions & 4 deletions lib/Headers/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function offsetUnset(mixed $offset): void
public function offsetSet(mixed $offset, mixed $value): void
{
if (!$this->offsetExists($offset)) {
throw new OffsetNotDefined([ $offset, $this ]);
throw new OffsetNotDefined($offset, $this);
}

if ($value instanceof HeaderParameter) {
Expand All @@ -205,7 +205,7 @@ public function offsetSet(mixed $offset, mixed $value): void
public function offsetGet(mixed $offset): HeaderParameter
{
if (!$this->offsetExists($offset)) {
throw new OffsetNotDefined([ $offset, $this ]);
throw new OffsetNotDefined($offset, $this);
}

return $this->parameters[$offset];
Expand Down Expand Up @@ -251,7 +251,7 @@ public function __get(string $property)
return $this[$property]->value;
}

throw new PropertyNotDefined([ $property, $this ]);
throw new PropertyNotDefined($property, $this);
}

/**
Expand All @@ -275,7 +275,7 @@ public function __set(string $property, mixed $value): void
return;
}

throw new PropertyNotDefined([ $property, $this ]);
throw new PropertyNotDefined($property, $this);
}

/**
Expand Down

0 comments on commit f4a2bd7

Please sign in to comment.