Re: What is wrong with this code?

From: Date: Wed, 28 Apr 2010 12:28:48 +0000
Subject: Re: What is wrong with this code?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-304719@lists.php.net to get a copy of this message
On Wed, Apr 28, 2010 at 2:17 PM, Thijs Lensselink wrote: > Gary . wrote: >> On 4/28/10, Thijs Lensselink wrote: >>> Gary . wrote: >>>> class Pg_Error >>>> { >>>>    private static $errors = >>>>        array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint >>>> violated'); >>>> >>>> >>> >>> Shouldn't this be: >>> >>> array(self::INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); >>> >> >> Yes, or something very like it. See Message-ID: >> <y2la35643581004280018i22b3de1ag1a836e7229378b77@mail.gmail.com> >> >> > > That message is about defining the class constant. "the array entry wasn't using the const value as a key..."

« previous php.general (#304719) next »