File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ public function __toString(): string {
9
9
/**
10
10
* @throws FileInfoException
11
11
*/
12
+ #[\ReturnTypeWillChange]
12
13
public function getRealPath () {
13
14
$ path = parent ::getRealPath ();
14
15
@@ -38,6 +39,7 @@ public function asFileUri(): string {
38
39
return 'file:// ' . urlencode ($ result );
39
40
}
40
41
42
+ #[\ReturnTypeWillChange]
41
43
public function getPath () {
42
44
return $ this ->toUnix (parent ::getPath ());
43
45
}
@@ -70,6 +72,7 @@ public function getLinkTarget(): string {
70
72
*
71
73
* @throws FileInfoException
72
74
*/
75
+ #[\ReturnTypeWillChange]
73
76
public function getFileInfo ($ class_name = null ): void {
74
77
throw new FileInfoException ('getFileInfo not implemented ' , FileInfoException::NotImplemented);
75
78
}
@@ -79,6 +82,7 @@ public function getFileInfo($class_name = null): void {
79
82
*
80
83
* @throws FileInfoException
81
84
*/
85
+ #[\ReturnTypeWillChange]
82
86
public function getPathInfo ($ class_name = null ): void {
83
87
throw new FileInfoException ('getPathInfo not implemented ' , FileInfoException::NotImplemented);
84
88
}
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ public function loadStylesheetFromXML($xml) {
149
149
*
150
150
* Extended version to throw exception on error
151
151
*/
152
+ #[\ReturnTypeWillChange]
152
153
public function importStylesheet ($ stylesheet ) {
153
154
if ($ stylesheet ->documentElement ->namespaceURI != 'http://www.w3.org/1999/XSL/Transform ' ) {
154
155
throw new fXSLTProcessorException (
@@ -164,6 +165,7 @@ public function importStylesheet($stylesheet) {
164
165
*
165
166
* Extended version to enforce callability of fXSLProcessor::callbackHook and generally callable methods
166
167
*/
168
+ #[\ReturnTypeWillChange]
167
169
public function registerPHPFunctions ($ restrict = NULL ) {
168
170
if (is_string ($ restrict )) {
169
171
$ restrict = array ($ restrict );
You can’t perform that action at this time.
0 commit comments