Cannot use %s as %s because %s is a special class name

Description

Some words, such as float, never, _, … are reserved by PHP and cannot be used as an alias name, just like they are not allowed with class names.

Example

<?php

use X as string;

?>

Literal Examples

  • Cannot use X as string because string is a special class name

Solutions

  • Use another name.