Skip to content

Commit 80c9065

Browse files
committed
Drop php 7.3 support
1 parent 401eae1 commit 80c9065

File tree

241 files changed

+9048
-28940
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+9048
-28940
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"issues": "https://github.com/sifophp/SIFO/issues"
2020
},
2121
"require": {
22-
"php": ">=7.2",
22+
"php": "^7.4",
2323
"geoip/geoip": "^1.17",
2424
"neutron/sphinxsearch-api": "^2.0",
2525
"phpmailer/phpmailer": "^6.0",
@@ -34,7 +34,10 @@
3434
},
3535
"require-dev": {
3636
"phpcompatibility/php-compatibility": "^9.3",
37+
"phpstan/phpstan": "^1.3",
3738
"phpunit/phpunit": "^5.0",
39+
"predis/predis": "^1.1",
40+
"rector/rector": "^0.12.9",
3841
"symfony/var-dumper": "^3.2"
3942
},
4043
"scripts": {

constants.php

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
3+
define('ROOT_PATH', __DIR__);
4+
define('ADODB_DIR', __DIR__ . '/src/adodb5');
5+
define('ADODB_BAD_RS', '<p>Bad $rs in %s. Connection or SQL invalid. Try using $connection->debug=true;</p>');
6+
define('ADODB_FETCH_NUM', 1);
7+
define('ADODB_FETCH_ASSOC', 2);
8+
define('ADODB_FETCH_BOTH', 3);
9+
define('ADODB_FETCH_DEFAULT', 0);
10+
define('ADODB_OPT_HIGH', 2);
11+
define('ADODB_OPT_LOW', 1);
12+
define('ADODB_ASSOC_CASE',0);
13+
define('ADODB_PHPVER',74000);
14+
define('ADODB_EXTENSION', '.php');
15+
define('ADODB_TABLE_REGEX','([]0-9a-z_\:\"\`\.\@\[-]*)');
16+
17+
18+
define('PEAR_ERROR_RETURN', 1);
19+
define('SMARTY_RESOURCE_CHAR_SET', 'utf-8');
20+
21+
define('IFX_SCROLL',1);
22+
23+
define('TIMESTAMP_FIRST_YEAR',0);
24+
25+
define("DB_ERROR", -1);
26+
define("DB_ERROR_SYNTAX", -2);
27+
define("DB_ERROR_CONSTRAINT", -3);
28+
define("DB_ERROR_NOT_FOUND", -4);
29+
define("DB_ERROR_ALREADY_EXISTS", -5);
30+
define("DB_ERROR_UNSUPPORTED", -6);
31+
define("DB_ERROR_MISMATCH", -7);
32+
define("DB_ERROR_INVALID", -8);
33+
define("DB_ERROR_NOT_CAPABLE", -9);
34+
define("DB_ERROR_TRUNCATED", -10);
35+
define("DB_ERROR_INVALID_NUMBER", -11);
36+
define("DB_ERROR_INVALID_DATE", -12);
37+
define("DB_ERROR_DIVZERO", -13);
38+
define("DB_ERROR_NODBSELECTED", -14);
39+
define("DB_ERROR_CANNOT_CREATE", -15);
40+
define("DB_ERROR_CANNOT_DELETE", -16);
41+
define("DB_ERROR_CANNOT_DROP", -17);
42+
define("DB_ERROR_NOSUCHTABLE", -18);
43+
define("DB_ERROR_NOSUCHFIELD", -19);
44+
define("DB_ERROR_NEED_MORE_DATA", -20);
45+
define("DB_ERROR_NOT_LOCKED", -21);
46+
define("DB_ERROR_VALUE_COUNT_ON_ROW", -22);
47+
define("DB_ERROR_INVALID_DSN", -23);
48+
define("DB_ERROR_CONNECT_FAILED", -24);
49+
define("DB_ERROR_EXTENSION_NOT_FOUND", -25);
50+
define("DB_ERROR_NOSUCHDB", -30);
51+
define("DB_ERROR_ACCESS_VIOLATION", -26);
52+
define("DB_ERROR_DEADLOCK", -27);
53+
define("DB_ERROR_STATEMENT_TIMEOUT", -28);
54+
define("DB_ERROR_SERIALIZATION_FAILURE", -29);
55+
define('DB_FETCHMODE_ASSOC', 2);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
include ROOT_PATH . '/vendor/sifophp/sifo-common-instance/config/configuration_files.config.php';

phpcs.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<ruleset name="Pheature coding standard">
3-
<description>Pheature coding standard</description>
2+
<ruleset name="SifoPHP coding standard">
3+
<description>SifoPHP coding standard</description>
44

55
<!-- display progress -->
66
<arg value="p"/>

0 commit comments

Comments
 (0)