Singly-linked queue in PHP 7 #2
I see three major problems with your code:


You dont use PHP 7 type hinting / return types
You dont have any scopes on your methods
If you wont modify your classes in the future and/or you wont extend from these classes you should use final for your class declarations
you should always set declare(strict_types=1); at the beginning of every php script as long as there are no veeeery good reasons to avoid it. It will force you to write your code more typesafe or you will get fatal errors


I will give you an example for each point i mentioned

1. "You dont use PHP 7 type hinting / return types"

Before:

function push($item) {


After: 

function push(int $item): void


2. You dont have any scopes on your methods

Before:

function getItem() {


After:

public function getItem(): void


3. class declaration as final

Before:

class QueueNode


After:

final class QueueNode


Sidenote:  

Also you should use properties like private $item = null; instead of your constructor setting. Your IDE and also any other maintainer will have trouble finding bugs and/or understanding this code.