Skip to content

Commit

Permalink
fix: deprecated warnings in PHP 8.1+
Browse files Browse the repository at this point in the history
* Fixes #196
  • Loading branch information
saas786 committed Oct 12, 2024
1 parent a39a125 commit 2b33bc6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Container/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ protected function getReflectionTypes( $dependency ) {
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet( $name, $value ) {

$this->add( $name, $value );
Expand All @@ -470,6 +471,7 @@ public function offsetSet( $name, $value ) {
* @param string $name
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset( $name ) {

$this->remove( $name );
Expand All @@ -483,6 +485,7 @@ public function offsetUnset( $name ) {
* @param string $name
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists( $name ) {

return $this->has( $name );
Expand All @@ -496,6 +499,7 @@ public function offsetExists( $name ) {
* @param string $name
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet( $name ) {

return $this->get( $name );
Expand Down
9 changes: 9 additions & 0 deletions src/Pagination/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ class Pagination implements PaginationContract {
*/
protected $dots = false;

/**
* Helper property for tracking arguments passed to pagination.
*
* @since 5.0.0
* @access protected
* @var array
*/
protected $args = [];

/**
* Create a new pagination object.
*
Expand Down

0 comments on commit 2b33bc6

Please sign in to comment.