fix warnings with PHP8.3

This commit is contained in:
Martin Monperrus
2024-08-31 08:30:15 +02:00
parent bf146c7606
commit d11330c5bc
3 changed files with 16 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env phpunit
<?php
/** PhPUnit tests for bibtexbrowser
+12
View File
@@ -588,6 +588,18 @@ Bibtexbrowser can generate [[https://en.wikipedia.org/wiki/COinS|Coins]], Google
?>
</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=====
Old-fashioned:
+3 -1
View File
@@ -4433,7 +4433,9 @@ usage:
class PagedDisplay {
var $query = array();
var $page = 1;
var $entries = array();
function __construct() {
$this->setPage();
}