fix warnings with PHP8.3
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env phpunit
|
||||
<?php
|
||||
/** PhPUnit tests for bibtexbrowser
|
||||
|
||||
|
||||
+12
@@ -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
@@ -4433,7 +4433,9 @@ usage:
|
||||
class PagedDisplay {
|
||||
|
||||
var $query = array();
|
||||
|
||||
var $page = 1;
|
||||
var $entries = array();
|
||||
|
||||
function __construct() {
|
||||
$this->setPage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user