[Pkg-owncloud-commits] [php-sabre-vobject] 71/128: Bit more clarity around the short array syntax in the documentation.

David Prévot taffit at moszumanska.debian.org
Tue May 20 23:11:03 UTC 2014


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 9907e13fa128c06d04ae9960116977cf3de5209f
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Tue Mar 4 15:19:33 2014 -0500

    Bit more clarity around the short array syntax in the documentation.
---
 doc/usage_3.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/doc/usage_3.md b/doc/usage_3.md
index 3fa933e..abe1cd3 100644
--- a/doc/usage_3.md
+++ b/doc/usage_3.md
@@ -43,8 +43,10 @@ A few notes about the examples:
    included.
 2. It's also assumed that `use Sabre\VObject` has been called to import the
    VObject namespace.
-3. Short-array syntax is used everywhere, which requires PHP 5.4. If you are
-   still on PHP 5.3, replace `[...]` with `array(...)` where appropriate.
+3. While sabre/vobject supports PHP 5.3, most of the examples in this document
+   use syntax that has been introduced in PHP 5.4. PHP 5.4 introduces a new way
+   to create arrays, which is a lot shorter and looks better. If you are
+   running PHP 5.3, you may need to replace `[` and `]` with `array(` and `)`.
 
 ### Creating vCards.
 

-- 
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