fix warnings with PHP8.3
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env phpunit
|
||||||
<?php
|
<?php
|
||||||
/** PhPUnit tests for bibtexbrowser
|
/** PhPUnit tests for bibtexbrowser
|
||||||
|
|
||||||
|
|||||||
+12
@@ -588,6 +588,18 @@ Bibtexbrowser can generate [[https://en.wikipedia.org/wiki/COinS|Coins]], Google
|
|||||||
?>
|
?>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
====How to run the test for another PHP version?====
|
||||||
|
|
||||||
|
Find the right image on Docker, eg ''8.3.11-cli-alpine'', and create `container/Dockerfile`
|
||||||
|
<pre>
|
||||||
|
FROM php:8.3.11-cli-alpine
|
||||||
|
RUN apk add phpunit
|
||||||
|
WORKDIR /tmp
|
||||||
|
CMD [ "phpunit"]
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
Then, ''docker build container'', and ''docker run -v /path/to/bibtexbrowser.dir:/tmp -ti 4f3591b79a60 /tmp/BibtexbrowserTest.php''
|
||||||
|
|
||||||
=====Related tools=====
|
=====Related tools=====
|
||||||
|
|
||||||
Old-fashioned:
|
Old-fashioned:
|
||||||
|
|||||||
@@ -4433,6 +4433,8 @@ usage:
|
|||||||
class PagedDisplay {
|
class PagedDisplay {
|
||||||
|
|
||||||
var $query = array();
|
var $query = array();
|
||||||
|
var $page = 1;
|
||||||
|
var $entries = array();
|
||||||
|
|
||||||
function __construct() {
|
function __construct() {
|
||||||
$this->setPage();
|
$this->setPage();
|
||||||
|
|||||||
Reference in New Issue
Block a user