Browse Source

fix warnings with PHP8.3

pull/134/head
Martin Monperrus 10 months ago
parent
commit
d11330c5bc
No known key found for this signature in database GPG Key ID: 7D398AD45AEEEC93
  1. 1
      BibtexbrowserTest.php
  2. 12
      README.wiki
  3. 2
      bibtexbrowser.php

1
BibtexbrowserTest.php

@ -1,3 +1,4 @@
#!/usr/bin/env phpunit
<?php <?php
/** PhPUnit tests for bibtexbrowser /** PhPUnit tests for bibtexbrowser

12
README.wiki

@ -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:

2
bibtexbrowser.php

@ -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();

Loading…
Cancel
Save