]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 18 Feb 2023 01:07:58 +0000 (02:07 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Feb 2023 02:22:08 +0000 (03:22 +0100)
- EXCEPTION_UNSPPORTED_OPERATION has been moved to FrameworkInterface
- also changed some old array() to "new" [] style
- updated 'core' framework

20 files changed:
application/hub/classes/discovery/recipient/socket/class_PackageSocketDiscovery.php
application/hub/classes/filter/tags/answer/class_PackageAnnouncementAnswerTagFilter.php
application/hub/classes/filter/tags/answer/class_PackageDhtBootstrapAnswerTagFilter.php
application/hub/classes/filter/tags/answer/class_PackageRequestNodeListAnswerTagFilter.php
application/hub/classes/filter/tags/class_PackageAnnouncementTagFilter.php
application/hub/classes/filter/tags/class_PackageDhtBootstrapTagFilter.php
application/hub/classes/filter/tags/class_PackageRequestNodeListTagFilter.php
application/hub/classes/filter/tags/class_PackageSelfConnectTagFilter.php
application/hub/classes/handler/data/message-types/self-connect/class_NodeMessageSelfConnectHandler.php
application/hub/classes/info/connection/class_ConnectionInfo.php
application/hub/classes/iterator/producer/keys/class_TestUnitKeyProducerIterator.php
application/hub/classes/listener/socket/class_SocketFileListener.php
application/hub/classes/listener/tcp/class_TcpListener.php
application/hub/classes/listener/udp/class_UdpListener.php
application/hub/classes/lists/pool/class_PoolEntriesList.php
application/hub/classes/nodes/class_BaseHubNode.php
application/hub/classes/package/deliverable/class_PackageData.php
application/hub/classes/resolver/state/class_BaseStateResolver.php
application/hub/classes/streams/raw_data/input/class_RawDataInputStream.php
core

index 6cc3ddc64024b5028498b128d16c23cbe2aebb5c..e406aa2ba8a00476380d40411d3678d66d872b29 100644 (file)
@@ -175,7 +175,7 @@ class PackageSocketDiscovery extends BaseRecipientDiscovery implements Discovera
                // Does the UNL validate?
                if (!$protocolInstance->isValidUniversalNodeLocatorByPackageInstance($packageInstance)) {
                        // Not valid, throw exception
-                       throw new InvalidUnlException(array($this, $protocolInstance, $packageInstance), DiscoverableUniversalNodeLocator::EXCEPTION_INVALID_UNL);
+                       throw new InvalidUnlException([$this, $protocolInstance, $packageInstance], DiscoverableUniversalNodeLocator::EXCEPTION_INVALID_UNL);
                }
 
                // Get the listener instance
index 7899493e638f541fd911fe95afa725c6da67bbf2..b07a1fd6fe7bf0876ef8ca1bd16c3d5921dd12a0 100644 (file)
@@ -12,6 +12,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEng
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -82,7 +83,7 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
@@ -108,7 +109,7 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
         */
        public function postProcessMessage (Receivable $handlerInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index db928f160294556824d90611e73e7d17780a7d58..617010a143fd34edb2f37b9ca861a1127534c0dd 100644 (file)
@@ -12,6 +12,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEng
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -79,7 +80,7 @@ class PackageDhtBootstrapAnswerTagFilter extends BaseNodeFilter implements Filte
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
@@ -105,7 +106,7 @@ class PackageDhtBootstrapAnswerTagFilter extends BaseNodeFilter implements Filte
         */
        public function postProcessMessage (Receivable $handlerInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index a621fb02550e4a3a82c98a8aa8b53a1a1ed4b583..8abcaa21eb035a12d373e98ea047385f518fd214 100644 (file)
@@ -12,6 +12,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEng
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -79,7 +80,7 @@ class PackageRequestNodeListAnswerTagFilter extends BaseNodeFilter implements Fi
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
@@ -105,7 +106,7 @@ class PackageRequestNodeListAnswerTagFilter extends BaseNodeFilter implements Fi
         */
        public function postProcessMessage (Receivable $handlerInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index 99a68e586c8e5dac8c3d39c7c26c65e7fc5cfee2..ce1bb4f14de3e4dbc024566fee86141d98e9f102 100644 (file)
@@ -10,6 +10,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Announcement\XmlAnnouncementTemplateEng
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -81,7 +82,7 @@ class PackageAnnouncementTagFilter extends BaseNodeFilter implements FilterableP
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
@@ -114,7 +115,7 @@ class PackageAnnouncementTagFilter extends BaseNodeFilter implements FilterableP
         */
        public function postProcessMessage (Receivable $handlerInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index 94c9e464e3e0d9bd6861639b7c532898dd4e48ce..b271325ae802c213a7695a91aa8f866ef558b45e 100644 (file)
@@ -11,6 +11,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEn
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -80,7 +81,7 @@ class PackageDhtBootstrapTagFilter extends BaseNodeFilter implements FilterableP
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
@@ -113,7 +114,7 @@ class PackageDhtBootstrapTagFilter extends BaseNodeFilter implements FilterableP
         */
        public function postProcessMessage (Receivable $handlerInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index 7d2b804852b41db844c77a206a8b27a87d88415f..29d3e92996de2eacdcf8ddc213ac3f01f220eb97 100644 (file)
@@ -11,6 +11,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Request\NodeList\XmlRequestNodeListTemp
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -77,7 +78,7 @@ class PackageRequestNodeListTagFilter extends BaseNodeFilter implements Filterab
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
@@ -102,7 +103,7 @@ class PackageRequestNodeListTagFilter extends BaseNodeFilter implements Filterab
         */
        public function postProcessMessage (Receivable $handlerInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index 34bde5edad4fe8fc79490e5e315f7dc3f8f1bb1f..71e724a98751d85446eabf1766baeb593e1f5141 100644 (file)
@@ -12,6 +12,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\SelfConnect\XmlSelfConnectTemplateEngin
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -78,7 +79,7 @@ class PackageSelfConnectTagFilter extends BaseNodeFilter implements FilterablePa
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
@@ -111,7 +112,7 @@ class PackageSelfConnectTagFilter extends BaseNodeFilter implements FilterablePa
         */
        public function postProcessMessage (Receivable $handlerInstance) {
                // Please don't call this method
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index 5cc708fbaec4ddf89ad5c694fba7313041aca965..0ac6f8bc70774c322c30f1744edd6f163cc7b2d9 100644 (file)
@@ -12,6 +12,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\SelfConnect\XmlSelfConnectTemplateEngin
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
@@ -103,7 +104,7 @@ class NodeMessageSelfConnectHandler extends BaseMessageHandler implements Handle
                parent::addArrayToDataSet($dataSetInstance, $messageInstance);
 
                // Please don't call this method!
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index 723868ecbc346af1c7a72f08f15364e1213bb069..e9873a4f70a4dd543364bc07e7b8e4baf51e6f12 100644 (file)
@@ -208,7 +208,7 @@ class ConnectionInfo extends BaseInfo implements ShareableInfo, Registerable {
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO: Invoking socketInstance->determineSocketPeerName(%s,%d) ...', $socketAddress, $socketPort));
                if (!$socketInstance->determineSocketPeerName($socketAddress, $socketPort)) {
                        // Did not work
-                       throw new InvalidSocketException(array($this, $socketInstance->getSocketResource()), self::EXCEPTION_INVALID_SOCKET);
+                       throw new InvalidSocketException([$this, $socketInstance->getSocketResource()], self::EXCEPTION_INVALID_SOCKET);
                }
 
                // Fill the generic array with several data from the listener:
index 587d4fccf8d14a2c3b0ca8eff8631976b2ae5930..3f017b4f64f907737c2be2994ac3f4531431b274 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Shipsimu\Hub\Iterator\Producer\Key\TestUnit;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
 
@@ -106,7 +107,7 @@ class TestUnitKeyProducerIterator extends BaseIterator implements Iterator {
         * @throws      UnsupportedOperationException   This method should not be called
         */
        public function key () {
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
@@ -131,7 +132,7 @@ class TestUnitKeyProducerIterator extends BaseIterator implements Iterator {
         * @throws      UnsupportedOperationException   This method should not be called
         */
        public function rewind () {
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
        /**
index 32863225baecbf9b05ecfb3ada9d50d9e34946a3..59c2fee9922f6a342cf508905fe7da4e6af0d098 100644 (file)
@@ -77,7 +77,7 @@ class SocketFileListener extends BaseListener implements Listenable {
                $this->registerServerSocketInstance($socketInstance);
 
                // Initialize the peer pool instance
-               $poolInstance = ObjectFactory::createObjectByConfiguredName('application_pool_class', array($this));
+               $poolInstance = ObjectFactory::createObjectByConfiguredName('application_pool_class', [$this]);
 
                // Add main socket
                $poolInstance->addPeer($socketInstance, StorableSocket::CONNECTION_TYPE_SERVER);
index 4ce47c3466ddf4fddd68532c0790d5d2d5b2ce52..333ad2a3841b42051aad3a95a32245666f55b2b4 100644 (file)
@@ -73,7 +73,7 @@ class TcpListener extends BaseListener implements Listenable {
                $this->registerServerSocketInstance($socketInstance);
 
                // Initialize the peer pool instance
-               $poolInstance = ObjectFactory::createObjectByConfiguredName('node_pool_class', array($this));
+               $poolInstance = ObjectFactory::createObjectByConfiguredName('node_pool_class', [$this]);
 
                // Add main socket
                $poolInstance->addPeer($socketInstance, StorableSocket::CONNECTION_TYPE_SERVER);
index 025f71a48127e8f2cc34e8660680eb503c43557e..ae4c2d7ca741d16d8954188672242f37f418011e 100644 (file)
@@ -11,6 +11,7 @@ use Org\Shipsimu\Hub\Network\Package\DeliverablePackage;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 
 /**
@@ -75,7 +76,7 @@ class UdpListener extends BaseListener implements Listenable {
                $this->registerServerSocketInstance($socketInstance);
 
                // Initialize the peer pool instance
-               $poolInstance = ObjectFactory::createObjectByConfiguredName('node_pool_class', array($this));
+               $poolInstance = ObjectFactory::createObjectByConfiguredName('node_pool_class', [$this]);
 
                // Add main socket
                $poolInstance->addPeer($socketInstance, StorableSocket::CONNECTION_TYPE_SERVER);
@@ -124,7 +125,7 @@ class UdpListener extends BaseListener implements Listenable {
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function ifListenerAcceptsPackageData (DeliverablePackage $packageInstance) {
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
 }
index 4a4a06d935a058010cfff08695cc8c2ed36995d8..466f84f977e8a180cba1a8116fa95bdb4ca1281d 100644 (file)
@@ -63,7 +63,7 @@ class PoolEntriesList extends BaseList implements Listable {
         */
        public function getListIterator () {
                // Get the iterator instance from the factory
-               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('node_ping_iterator_class', array($this));
+               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('node_ping_iterator_class', [$this]);
 
                // Rewind it
                $iteratorInstance->rewind();
index ea97f3c5ad40779fcb13368fdde4eaa4d9fbda24..fcb108d5ead21559bc5cb9f0ba2d5c529ff21b0e 100644 (file)
@@ -606,7 +606,7 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-HUB-NODE: Self Connection: START (taskInstance=' . $taskInstance->__toString(). ')');
 
                // Get a helper instance
-               $helperInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_helper_class', array($this));
+               $helperInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_helper_class', [$this]);
 
                // Load the descriptor (XML) file
                $helperInstance->loadDescriptorXml($this);
@@ -660,7 +660,7 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-HUB-NODE: Initialize listener: START');
 
                // Get a new pool instance
-               $this->setListenerPoolInstance(ObjectFactory::createObjectByConfiguredName('listener_pool_class', array($this)));
+               $this->setListenerPoolInstance(ObjectFactory::createObjectByConfiguredName('listener_pool_class', [$this]));
 
                // Get an instance of the low-level listener
                $listenerInstance = ObjectFactory::createObjectByConfiguredName('socket_file_listener_class');
index be195bfbc9bf14d380e875b72b38ad1d065b5ae1..29c8f1ac83982cd216bd9b896eb9ec0e6b2c8808 100644 (file)
@@ -449,7 +449,7 @@ class PackageData extends BaseHubSystem implements DeliverablePackage, Registera
                        }
 
                        // Invoke getter method
-                       $value = call_user_func_array(array($this, sprintf('get%s', ucfirst($propertyInstance->getName()))), array());
+                       $value = call_user_func_array([$this, sprintf('get%s', ucfirst($propertyInstance->getName()))], []);
 
                        // Add name/value
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('PACKAGE-DATA: Adding %s[%s]=%s', $propertyInstance->getName(), gettype($value), $value));
index bc28654bdcca5d9e308357a6a68efcae7047e9c0..fd7e000de42eaa2752ddfb791a4bc106367dca70 100644 (file)
@@ -118,7 +118,7 @@ abstract class BaseStateResolver extends BaseResolver {
                // Initialize the state
                $stateInstance = ObjectFactory::createObjectByName(
                        $this->getClassName(),
-                       array($this)
+                       [$this]
                );
 
                // Return the result
index e27ba23980192c321743ddb6a288c16ca5869dca..7a4a2d27cb9c3e769ccc590ff8669fc4a6319ee3 100644 (file)
@@ -90,7 +90,7 @@ class RawDataInputStream extends BaseStream implements InputStream {
                        throw new InvalidArgumentException(sprintf('data=%s has different count of start/end markers set', $data));
                } elseif (substr_count($data, HandleableRawData::STREAM_START_MARKER) > 1) {
                        // Please do it outside this method
-                       throw new MultipleMessageSentException(array($this, $data), HandleableMessage::EXCEPTION_MULTIPLE_MESSAGE_SENT);
+                       throw new MultipleMessageSentException([$this, $data], HandleableMessage::EXCEPTION_MULTIPLE_MESSAGE_SENT);
                }
 
                // Remove both
@@ -99,10 +99,10 @@ class RawDataInputStream extends BaseStream implements InputStream {
                // Can it be validated?
                if ((strlen($data) % 4) != 0) {
                        // Length modulo 4 must be zero, else it is an invalid Base64 message
-                       throw new Base64EncodingModuloException(array($this, $data), HubInterface::EXCEPTION_BASE64_ENCODING_NOT_MODULO_4);
+                       throw new Base64EncodingModuloException([$this, $data], HubInterface::EXCEPTION_BASE64_ENCODING_NOT_MODULO_4);
                } elseif (!$this->isBase64Encoded($data)) {
                        // Is not a valid Base64-encoded message
-                       throw new Base64EncodingBadException(array($this, $data), HubInterface::EXCEPTION_BASE64_BAD_ENCODING);
+                       throw new Base64EncodingBadException([$this, $data], HubInterface::EXCEPTION_BASE64_BAD_ENCODING);
                } else {
                        // Decode the data with BASE64-encoding
                        $data = base64_decode($data);
diff --git a/core b/core
index 262f905be8d6f9dc9fd02acc9505cb45ef2a53f6..1287590bb4dff94252b1c45f320d93ce65eb5495 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 262f905be8d6f9dc9fd02acc9505cb45ef2a53f6
+Subproject commit 1287590bb4dff94252b1c45f320d93ce65eb5495