Skip to content

Commit 6776ab7

Browse files
Improve class utils (#258)
* Final private method genereate exception. Magic methods can be only public * change deprecated pg_errormessage function * Remove extra args * Deprecated: Required parameter follows optional parameter * Modify Singleton test * Some code cleaning. Add Aliased tests * Add checking that peer exists * Cosmetic fix for backward compatibility 7.4 * Improve ClassUtils, add full tests coverage * Cosmetic fix for backward compatibility 7.4 * Cosmetic fix for backward compatibility 7.4 * Cosmetic fix for backward compatibility 7.4
1 parent 85a48e0 commit 6776ab7

35 files changed

+933
-367
lines changed

composer.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@
66
"type": "library",
77
"license": "GPL-3.0",
88
"authors": [
9-
{
10-
"name": "Konstantin Arkhipov"
11-
},
12-
{
13-
"name": "Anton Lebedevich"
14-
}
9+
{ "name": "Konstantin Arkhipov" },
10+
{ "name": "Anton Lebedevich" }
1511
],
1612
"require": {
17-
"php": ">=7.3.0"
13+
"php": ">=7.4"
1814
},
1915
"conflict": {
2016
"ext-http": "*"

global.inc.php.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
// sample system-wide configuration file
1313

14-
function error2Exception($code, $string, $file, $line, $context)
14+
function error2Exception($code, $string, $file, $line)
1515
{
1616
throw new \OnPHP\Core\Exception\BaseException($string, $code);
1717
}

src/Core/Base/Aliased.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818
interface Aliased
1919
{
2020
public function getAlias();
21-
}
22-
?>
21+
}

0 commit comments

Comments
 (0)