[Pkg-owncloud-commits] [php-sabre-vobject] 38/46: Should have been static.
David Prévot
taffit at moszumanska.debian.org
Thu Dec 10 02:12:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 907597be1aadb23cb187e0ab110e0209ca9e4446
Author: Evert Pot <me at evertpot.com>
Date: Fri Nov 27 18:25:53 2015 -0500
Should have been static.
---
lib/Parser/MimeDir.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Parser/MimeDir.php b/lib/Parser/MimeDir.php
index 9fc1761..dc5491f 100644
--- a/lib/Parser/MimeDir.php
+++ b/lib/Parser/MimeDir.php
@@ -56,7 +56,7 @@ class MimeDir extends Parser {
*
* This would be a const expression but for now we need to support PHP 5.5
*/
- protected $SUPPORTED_CHARSETS = [
+ static protected $SUPPORTED_CHARSETS = [
'UTF-8',
'ISO-8859-1',
'Windows-1252',
@@ -106,7 +106,7 @@ class MimeDir extends Parser {
function setCharset($charset) {
if (!in_array($charset, self::$SUPPORTED_CHARSETS)) {
- throw new \InvalidArgumentException('Unsupported encoding. (Supported encodings: ' . implode(', ', self::SUPPORTED_CHARSETS) . ')');
+ throw new \InvalidArgumentException('Unsupported encoding. (Supported encodings: ' . implode(', ', self::$SUPPORTED_CHARSETS) . ')');
}
$this->charset = $charset;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list