Skip to content

Commit

Permalink
v3.1.1
Browse files Browse the repository at this point in the history
Fix property's default value not compatible with beginning PHP version.
  • Loading branch information
ve3 committed Dec 10, 2024
1 parent 4153114 commit 887979c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Pagination Component

PHP Pagination.<br>
The highly customizable PHP pagination class.
The highly customizable PHP pagination class.
Tested on PHP 8.4.

[![Latest Stable Version](https://poser.pugx.org/rundiz/pagination/v/stable)](https://packagist.org/packages/rundiz/pagination)
[![License](https://poser.pugx.org/rundiz/pagination/license)](https://packagist.org/packages/rundiz/pagination)
Expand Down
14 changes: 7 additions & 7 deletions Rundiz/Pagination/Pagination.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Pagination
* @version 3.1.0
* @version 3.1.1
* @author Vee W.
* @license http://opensource.org/licenses/MIT MIT
*/
Expand Down Expand Up @@ -88,7 +88,7 @@ class Pagination
/**
* @var array The first page link attributes in associative array where key is attribute name. Example array('class' => 'my class'). Must not contains `href` attribute.
*/
public $first_page_link_attributes = [];
public $first_page_link_attributes = array();
/**
* @var string The first page tag open. If you set to display first page, this will be placed before link to the first page.
*/
Expand All @@ -109,7 +109,7 @@ class Pagination
/**
* @var array The first page link attributes in associative array where key is attribute name. Example array('class' => 'my class'). Must not contains `href` attribute.
*/
public $last_page_link_attributes = [];
public $last_page_link_attributes = array();
/**
* @var string The last page tag open. If you set to display last page, this will be placed before link to the last page.
*/
Expand All @@ -126,7 +126,7 @@ class Pagination
/**
* @var array The first page link attributes in associative array where key is attribute name. Example array('class' => 'my class'). Must not contains `href` attribute.
*/
public $next_page_link_attributes = [];
public $next_page_link_attributes = array();
/**
* @var mixed The link text of the paginate that will go to the next page. Set to false to not displaying next page link.
*/
Expand All @@ -147,7 +147,7 @@ class Pagination
/**
* @var array The first page link attributes in associative array where key is attribute name. Example array('class' => 'my class'). Must not contains `href` attribute.
*/
public $previous_page_link_attributes = [];
public $previous_page_link_attributes = array();
/**
* @var mixed The link text of the paginate that will go to the previous page. Set to false to not displaying previous page link.
*/
Expand All @@ -164,7 +164,7 @@ class Pagination
/**
* @var array The first page link attributes in associative array where key is attribute name. Example array('class' => 'my class'). Must not contains `href` attribute.
*/
public $current_page_link_attributes = [];
public $current_page_link_attributes = array();
/**
* @var boolean Display current link at current page. Set to true to display, false not to display.
*/
Expand All @@ -185,7 +185,7 @@ class Pagination
/**
* @var array The first page link attributes in associative array where key is attribute name. Example array('class' => 'my class'). Must not contains `href` attribute.
*/
public $number_page_link_attributes = [];
public $number_page_link_attributes = array();
/**
* @var string The page number tag open. If you set to display page number, this will be placed before link to the page number.
*/
Expand Down

0 comments on commit 887979c

Please sign in to comment.