Stern PHP Type Safety package blog

Recommend this page to a friend!

Latest Stern PHP Type Safety package blog posts

  All package blogs All package blogs   Stern PHP Type Safety Stern PHP Type Safety   Blog Stern PHP Type Safety package blog   Post article Post article  

1. How Can PHP Strict Types Help Preventing Bugs When Migrating to PHP 7 or PHP 8

Updated on: 2020-07-27

Posted on:

Strict type support allows PHP to check if the types of values passed to functions are of the expected type.

This possibility makes it easier for developers to catch bugs in code that pass the wrong types of values to strict functions.

Strict type support was introduced in PHP 7. To make older projects take advantage of strict types, you need to migrate those projects to PHP 7 to take advantage of this and other PHP 7 features.

In this tutorial, you will learn how to perform a smooth migration of older projects to PHP 7, so you can use strict types without introducing backwards incompatible changes that could cause more bugs to appear in your projects.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   Stern PHP Type Safety Stern PHP Type Safety   Blog Stern PHP Type Safety package blog   Post article Post article  

For more information send a message to info at phpclasses dot org.