Upgrade dependencies and fix PHPCS errors.

parent a87a9e68
...@@ -9,6 +9,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ...@@ -9,6 +9,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
- Allow passing absolute file path for InputFile fields, instead of `Request::encodeFile($path)`. - Allow passing absolute file path for InputFile fields, instead of `Request::encodeFile($path)`.
### Changed ### Changed
- All Message field types dynamically search for an existing Command class that can handle them. - All Message field types dynamically search for an existing Command class that can handle them.
- Upgrade dependencies.
### Deprecated ### Deprecated
- Botan.io service has been discontinued. - Botan.io service has been discontinued.
- Most built-in System Commands will be handled by GenericmessageCommand by default in a future release and will require a custom implementation. - Most built-in System Commands will be handled by GenericmessageCommand by default in a future release and will require a custom implementation.
...@@ -16,6 +17,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ...@@ -16,6 +17,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Fixed ### Fixed
- Constraint errors in `/cleanup` command. - Constraint errors in `/cleanup` command.
- Return correct objects for requests. - Return correct objects for requests.
- PHPCS: static before visibility declaration.
### Security ### Security
## [0.55.1] - 2019-01-06 ## [0.55.1] - 2019-01-06
......
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
"ext-curl": "*", "ext-curl": "*",
"ext-json": "*", "ext-json": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"monolog/monolog": "^1.23", "monolog/monolog": "^1.24",
"guzzlehttp/guzzle": "^6.3" "guzzlehttp/guzzle": "^6.3"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8|^5.7|^6.5|^7.4", "phpunit/phpunit": "^4.8|^5.7|^6.5|^7.4|^8.1",
"squizlabs/php_codesniffer": "^3.3" "squizlabs/php_codesniffer": "^3.4"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "b480d20ffb4afc92ada1cf9b85d77e83", "content-hash": "3352bfe13b453f4614db2b38a2a77498",
"packages": [ "packages": [
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
...@@ -124,32 +124,33 @@ ...@@ -124,32 +124,33 @@
}, },
{ {
"name": "guzzlehttp/psr7", "name": "guzzlehttp/psr7",
"version": "1.4.2", "version": "1.5.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/psr7.git", "url": "https://github.com/guzzle/psr7.git",
"reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" "reference": "9f83dded91781a01c63574e387eaa769be769115"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", "url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115",
"reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", "reference": "9f83dded91781a01c63574e387eaa769be769115",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.4.0", "php": ">=5.4.0",
"psr/http-message": "~1.0" "psr/http-message": "~1.0",
"ralouphie/getallheaders": "^2.0.5"
}, },
"provide": { "provide": {
"psr/http-message-implementation": "1.0" "psr/http-message-implementation": "1.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~4.0" "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.4-dev" "dev-master": "1.5-dev"
} }
}, },
"autoload": { "autoload": {
...@@ -179,26 +180,27 @@ ...@@ -179,26 +180,27 @@
"keywords": [ "keywords": [
"http", "http",
"message", "message",
"psr-7",
"request", "request",
"response", "response",
"stream", "stream",
"uri", "uri",
"url" "url"
], ],
"time": "2017-03-20T17:10:46+00:00" "time": "2018-12-04T20:46:45+00:00"
}, },
{ {
"name": "monolog/monolog", "name": "monolog/monolog",
"version": "1.23.0", "version": "1.24.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Seldaek/monolog.git", "url": "https://github.com/Seldaek/monolog.git",
"reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4" "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/fd8c787753b3a2ad11bc60c063cff1358a32a3b4", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266",
"reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4", "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -263,7 +265,7 @@ ...@@ -263,7 +265,7 @@
"logging", "logging",
"psr-3" "psr-3"
], ],
"time": "2017-06-19T01:22:40+00:00" "time": "2018-11-05T09:00:11+00:00"
}, },
{ {
"name": "psr/http-message", "name": "psr/http-message",
...@@ -317,16 +319,16 @@ ...@@ -317,16 +319,16 @@
}, },
{ {
"name": "psr/log", "name": "psr/log",
"version": "1.0.2", "version": "1.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/log.git", "url": "https://github.com/php-fig/log.git",
"reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
"reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -360,7 +362,47 @@ ...@@ -360,7 +362,47 @@
"psr", "psr",
"psr-3" "psr-3"
], ],
"time": "2016-10-10T12:19:37+00:00" "time": "2018-11-20T15:27:04+00:00"
},
{
"name": "ralouphie/getallheaders",
"version": "2.0.5",
"source": {
"type": "git",
"url": "https://github.com/ralouphie/getallheaders.git",
"reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
"reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
"shasum": ""
},
"require": {
"php": ">=5.3"
},
"require-dev": {
"phpunit/phpunit": "~3.7.0",
"satooshi/php-coveralls": ">=1.0"
},
"type": "library",
"autoload": {
"files": [
"src/getallheaders.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ralph Khattar",
"email": "ralph.khattar@gmail.com"
}
],
"description": "A polyfill for getallheaders.",
"time": "2016-02-11T07:05:27+00:00"
} }
], ],
"packages-dev": [ "packages-dev": [
...@@ -1001,6 +1043,7 @@ ...@@ -1001,6 +1043,7 @@
"mock", "mock",
"xunit" "xunit"
], ],
"abandoned": true,
"time": "2015-10-02T06:51:40+00:00" "time": "2015-10-02T06:51:40+00:00"
}, },
{ {
...@@ -1377,16 +1420,16 @@ ...@@ -1377,16 +1420,16 @@
}, },
{ {
"name": "squizlabs/php_codesniffer", "name": "squizlabs/php_codesniffer",
"version": "3.3.2", "version": "3.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "6ad28354c04b364c3c71a34e4a18b629cc3b231e" "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/6ad28354c04b364c3c71a34e4a18b629cc3b231e", "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
"reference": "6ad28354c04b364c3c71a34e4a18b629cc3b231e", "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1419,25 +1462,25 @@ ...@@ -1419,25 +1462,25 @@
} }
], ],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "http://www.squizlabs.com/php-codesniffer", "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [ "keywords": [
"phpcs", "phpcs",
"standards" "standards"
], ],
"time": "2018-09-23T23:08:17+00:00" "time": "2019-04-10T23:49:02+00:00"
}, },
{ {
"name": "symfony/polyfill-ctype", "name": "symfony/polyfill-ctype",
"version": "v1.9.0", "version": "v1.11.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git", "url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "e3d826245268269cd66f8326bd8bc066687b4a19" "reference": "82ebae02209c21113908c229e9883c419720738a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19", "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a",
"reference": "e3d826245268269cd66f8326bd8bc066687b4a19", "reference": "82ebae02209c21113908c229e9883c419720738a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1449,7 +1492,7 @@ ...@@ -1449,7 +1492,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.9-dev" "dev-master": "1.11-dev"
} }
}, },
"autoload": { "autoload": {
...@@ -1471,7 +1514,7 @@ ...@@ -1471,7 +1514,7 @@
}, },
{ {
"name": "Gert de Pagter", "name": "Gert de Pagter",
"email": "BackEndTea@gmail.com" "email": "backendtea@gmail.com"
} }
], ],
"description": "Symfony polyfill for ctype functions", "description": "Symfony polyfill for ctype functions",
...@@ -1482,20 +1525,20 @@ ...@@ -1482,20 +1525,20 @@
"polyfill", "polyfill",
"portable" "portable"
], ],
"time": "2018-08-06T14:22:27+00:00" "time": "2019-02-06T07:57:58+00:00"
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",
"version": "v3.4.17", "version": "v3.4.24",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/yaml.git", "url": "https://github.com/symfony/yaml.git",
"reference": "640b6c27fed4066d64b64d5903a86043f4a4de7f" "reference": "212a27b731e5bfb735679d1ffaac82bd6a1dc996"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/640b6c27fed4066d64b64d5903a86043f4a4de7f", "url": "https://api.github.com/repos/symfony/yaml/zipball/212a27b731e5bfb735679d1ffaac82bd6a1dc996",
"reference": "640b6c27fed4066d64b64d5903a86043f4a4de7f", "reference": "212a27b731e5bfb735679d1ffaac82bd6a1dc996",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1541,24 +1584,25 @@ ...@@ -1541,24 +1584,25 @@
], ],
"description": "Symfony Yaml Component", "description": "Symfony Yaml Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2018-10-02T16:33:53+00:00" "time": "2019-03-25T07:48:46+00:00"
}, },
{ {
"name": "webmozart/assert", "name": "webmozart/assert",
"version": "1.3.0", "version": "1.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/webmozart/assert.git", "url": "https://github.com/webmozart/assert.git",
"reference": "0df1908962e7a3071564e857d86874dad1ef204a" "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
"reference": "0df1908962e7a3071564e857d86874dad1ef204a", "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^5.3.3 || ^7.0" "php": "^5.3.3 || ^7.0",
"symfony/polyfill-ctype": "^1.8"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.6", "phpunit/phpunit": "^4.6",
...@@ -1591,7 +1635,7 @@ ...@@ -1591,7 +1635,7 @@
"check", "check",
"validate" "validate"
], ],
"time": "2018-01-29T19:49:41+00:00" "time": "2018-12-25T11:19:39+00:00"
} }
], ],
"aliases": [], "aliases": [],
......
...@@ -31,28 +31,28 @@ class DB ...@@ -31,28 +31,28 @@ class DB
* *
* @var array * @var array
*/ */
static protected $mysql_credentials = []; protected static $mysql_credentials = [];
/** /**
* PDO object * PDO object
* *
* @var PDO * @var PDO
*/ */
static protected $pdo; protected static $pdo;
/** /**
* Table prefix * Table prefix
* *
* @var string * @var string
*/ */
static protected $table_prefix; protected static $table_prefix;
/** /**
* Telegram class object * Telegram class object
* *
* @var Telegram * @var Telegram
*/ */
static protected $telegram; protected static $telegram;
/** /**
* Initialize * Initialize
......
...@@ -22,42 +22,42 @@ class TelegramLog ...@@ -22,42 +22,42 @@ class TelegramLog
* *
* @var \Monolog\Logger * @var \Monolog\Logger
*/ */
static protected $monolog; protected static $monolog;
/** /**
* Monolog instance for update * Monolog instance for update
* *
* @var \Monolog\Logger * @var \Monolog\Logger
*/ */
static protected $monolog_update; protected static $monolog_update;
/** /**
* Path for error log * Path for error log
* *
* @var string * @var string
*/ */
static protected $error_log_path; protected static $error_log_path;
/** /**
* Path for debug log * Path for debug log
* *
* @var string * @var string
*/ */
static protected $debug_log_path; protected static $debug_log_path;
/** /**
* Path for update log * Path for update log
* *
* @var string * @var string
*/ */
static protected $update_log_path; protected static $update_log_path;
/** /**
* Temporary stream handle for debug log * Temporary stream handle for debug log
* *
* @var resource|null * @var resource|null
*/ */
static protected $debug_log_temp_stream_handle; protected static $debug_log_temp_stream_handle;
/** /**
* Initialize Monolog Logger instance, optionally passing an existing one * Initialize Monolog Logger instance, optionally passing an existing one
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment