PHP code example of archiprocode / silverstripe-six-polyfill

1. Go to this page and download the library: Download archiprocode/silverstripe-six-polyfill library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

archiprocode / silverstripe-six-polyfill example snippets


public function __construct(array $items = [])
{
    Deprecation::withSuppressedNotice(function () {
        Deprecation::notice('5.4.0', 'Will be renamed to SilverStripe\Model\List\ArrayList', Deprecation::SCOPE_CLASS);
    });

    $this->items = array_values($items ?? []);
    parent::__construct();
}