PHP Classes

Sounds like a good idea to me

Recommend this page to a friend!

      PHP Classes blog  >  The Secret PHP Optimi...  >  All threads  >  Sounds like a good idea to me  >  (Un) Subscribe thread alerts  
Subject:Sounds like a good idea to me
Summary:I would like the possibility to use strict typing
Messages:3
Author:Dave Kennard
Date:2012-06-14 17:30:42
Update:2012-06-15 16:25:16
 

  1. Sounds like a good idea to me   Reply   Report abuse  
Picture of Dave Kennard Dave Kennard - 2012-06-14 20:14:16
Adding the option to use strict typing sounds like a good idea to me, especially if it would provide a performance benefit when taken advantage of.

Are you aware of any way to easily check whether a class has dynamically created properties? I always try to declare properties, but I wouldn't be surprised if I forget every once in a while.

Dave

PS I didn't notice any problems with the article, read fine to me.

  2. Re: Sounds like a good idea to me   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-06-14 20:48:27 - In reply to message 1 from Dave Kennard
It would not be hard to write a simple tool to check that but I suspect PHP Mess Detector of Manuel Pichler may already do that.

phpmd.org/

  3. Re: Sounds like a good idea to me   Reply   Report abuse  
Picture of Dave Kennard Dave Kennard - 2012-06-15 16:25:16 - In reply to message 2 from Manuel Lemos
Thanks Manuel, I don't think I'd heard of PHP Mess Detector, but it looks like it could be quite useful.

Cheers

Dave