From: Matthias Schmidt Date: Wed, 21 Sep 2016 15:42:31 +0000 (+0200) Subject: Use short array syntax X-Git-Tag: 3.0.0_Beta_1~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=223c49614c00526c85f605ee3edd2eb105590e92;p=GitHub%2FWoltLab%2FWCF.git Use short array syntax --- diff --git a/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php index 4d70c0bbf5..81e4039dfa 100644 --- a/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php @@ -30,7 +30,7 @@ class ArticlePublicationCronjob extends AbstractCronjob { $articleList->readObjects(); foreach ($articleList as $article) { - $action = new ArticleAction(array($article), 'update', [ + $action = new ArticleAction([$article], 'update', [ 'data' => [ 'time' => $article->publicationDate, 'publicationStatus' => Article::PUBLISHED,