Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»A Look at What’s Coming to PHP 8.4

    A Look at What’s Coming to PHP 8.4

    May 17, 2024

    PHP 8.4 is coming soon and in this post let’s look at what has been announced so far, and what new features you might expect.

    When is PHP 8.4 scheduled to be released?

    PHP 8.4 is scheduled to be released on November 21, 2024. Before the release it will feature 6 months of pre-release phases going from Alphas, to Betas, to Release Candidates, and then the official release.

    PHP Property Hooks

    Property hooks are inspired by languages like Kotlin, C#, and Swift, and the syntax includes two syntax variants that resemble short and multi-line closures:

    class User implements Named
    {
    private bool $isModified = false;

    public function __construct(
    private string $first,
    private string $last
    ) {}

    public string $fullName {
    // Override the “read” action with arbitrary logic.
    get => $this->first . ” ” . $this->last;

    // Override the “write” action with arbitrary logic.
    set {
    [$this->first, $this->last] = explode(‘ ‘, $value, 2);
    $this->isModified = true;
    }
    }
    }

    Property hooks will help remove boilerplate of property getters and setters, allowing a property to define access and updates using hooks.

    Check out our post for more details: Property Hooks in PHP 8.4.

    new MyClass()->method() without parentheses

    Since member access during instantiation was introduced, you must wrap the new MyClass() call in parentheses, or you’ll get a parse error. The proposed syntax would allow you to access constants, properties, and methods without the extra parentheses:

    // Wrapping parentheses are required to access class members
    $request = (new Request())->withMethod(‘GET’)->withUri(‘/hello-world’);
     
    // PHP Parse error (<= PHP 8.3): syntax error, unexpected token “->”
    $request = new Request()->withMethod(‘GET’)->withUri(‘/hello-world’);

    This update fixes papercut that makes working with class member access simpler, not having to add surrounding parentheses or using a static constructor method. This syntax change also puts PHP more in alignment with other C languages like Java, C#, and TypeScript, which don’t require surrounded parentheses.

    Check out our post for more details: Class Instantiation Without Extra Parenthesis in PHP 8.4.

    Learn More

    You can follow the PHP 8.4 Preparation Tasks on the wiki.

    The post A Look at What’s Coming to PHP 8.4 appeared first on Laravel News.

    Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleChina-Linked Hackers Adopt Two-Stage Infection Tactic to Deploy Deuterbear RAT
    Next Article Spreading Autism Awareness

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-40906 – MongoDB BSON Serialization BSON::XS Multiple Vulnerabilities

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    DistroWatch Weekly, Issue 1108

    News & Updates

    최신 애플리케이션을 더 빠르게 구축하기: MongoDB.local NYC 2024에서 신규 기능 발표

    Databases

    Lalal AI Review: Is This Stepm Splitter Worth Your Time?

    Development

    MyPetVillage

    Development

    Highlights

    Development

    Validation Errors Card for Laravel Pulse

    May 15, 2024

    The Validation Errors Card for Laravel Pulse shows useful metrics for validation errors impacting users.…

    How Data Analytics in Insurance is Driving Smarter Decisions

    March 16, 2025

    UK government wants to spy on your Apple accounts, even if you’re not a Brit

    February 11, 2025

    CVE-2025-45242 – Rhymix File Deletion Vulnerability

    May 5, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.