f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
207 stars 88 forks source link

Improve auth.php intval() call replaced with int type cast #235

Closed Ayesh closed 6 years ago

Ayesh commented 6 years ago

There is one usage of intval() that we could convert to an (int) type cast. intval() has a function call overhead, and in older PHP versions, (int) cast is 2-3 times faster than intval().

Sending a PR hoping you could review and merge.

Thank you.