Skip to content

Instantly share code, notes, and snippets.

View n-e-m-a-nj-a's full-sized avatar

Nemanja Cucurevic n-e-m-a-nj-a

View GitHub Profile
@n-e-m-a-nj-a
n-e-m-a-nj-a / arraymapissue.php
Created March 20, 2020 16:01
Array map preserves keys if array_unique is called beforehand
<?php
final class ProductId
{
private $id;
public function __construct(string $id)
{
$this->id = $id;
}
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
* $classLoader = new SplClassLoader('Doctrine\Common');
* $classLoader->register();