Hello @damian1989, welcome to Trac!
The same occurs in most of /wp-includes/*.php and /wp-admin/includes/*.php
However, this is not a security issue, nor is it something that intends on being "fixed" as it's not encountered during "standard usage". If WordPress is used on a production server, error displays should be disabled, and/or direct access to the php files in the above directories disabled.
Additionally, when you created this ticket:
Do not report potential security vulnerabilities here. See the Security FAQ and contact security@wordpress.org.