update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
17
vendor/dompdf/php-font-lib/AUTHORS.md
vendored
17
vendor/dompdf/php-font-lib/AUTHORS.md
vendored
@@ -1,17 +0,0 @@
|
||||
FontLib was designed and developed by Fabien Ménager.
|
||||
|
||||
### Current Team
|
||||
|
||||
* **Brian Sweeney** (maintainer)
|
||||
|
||||
### Alumni
|
||||
|
||||
* **Fabien Ménager** (creator)
|
||||
|
||||
### Contributors
|
||||
* **mondrake**
|
||||
* [and many more...](https://github.com/dompdf/php-font-lib/graphs/contributors)
|
||||
|
||||
### Thanks
|
||||
|
||||
FontLib would not have been possible without strong community support.
|
||||
8
vendor/dompdf/php-font-lib/composer.json
vendored
8
vendor/dompdf/php-font-lib/composer.json
vendored
@@ -20,14 +20,14 @@
|
||||
"FontLib\\Tests\\": "tests/FontLib"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"bin-dir": "bin"
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"ext-mbstring": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge" : "^3 || ^4 || ^5 || ^6"
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11 || ^12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "phpunit"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ public static function getTempFile($allow_memory = true) {
|
||||
* @return bool True if the $offset position exists in the file
|
||||
*/
|
||||
public function seek($offset) {
|
||||
return fseek($this->f, $offset, SEEK_SET) == 0;
|
||||
return fseek($this->f, (int)$offset, SEEK_SET) == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -158,7 +158,11 @@ public function write($data, $length = null) {
|
||||
}
|
||||
|
||||
public function readUInt8() {
|
||||
return ord($this->read(1));
|
||||
$byte = $this->read(1);
|
||||
if ($byte === '') {
|
||||
return 0;
|
||||
}
|
||||
return ord($byte);
|
||||
}
|
||||
|
||||
public function readUInt8Many($count) {
|
||||
|
||||
@@ -69,28 +69,34 @@ function getFont($fontId) {
|
||||
return $this->collection[$fontId] = $font;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function current() {
|
||||
return $this->getFont($this->position);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function key() {
|
||||
return $this->position;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function next() {
|
||||
return ++$this->position;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function rewind() {
|
||||
$this->position = 0;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function valid() {
|
||||
$this->parse();
|
||||
|
||||
return isset($this->collectionOffsets[$this->position]);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function count() {
|
||||
$this->parse();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user