{"id":116047,"date":"2023-11-24T11:11:51","date_gmt":"2023-11-24T02:11:51","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=116047"},"modified":"2023-11-24T11:11:51","modified_gmt":"2023-11-24T02:11:51","slug":"php-8-3","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/php-8-3\/","title":{"rendered":"PHP 8.3\u304c\u30ea\u30ea\u30fc\u30b9 - Typed Class Constants\u3084Override\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u306a\u3069\u65b0\u6a5f\u80fd\u76db\u308a\u3060\u304f\u3055\u3093"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2023\/11\/s_20231124_110240.jpg\" alt=\"S 20231124 110240\" title=\"s_20231124_110240.jpg\" border=\"0\" width=\"941\" height=\"465\" \/><\/p>\n<p>PHP\u958b\u767a\u30c1\u30fc\u30e0\u306f11\u670823\u65e5\u3001\u300cPHP 8.3.0\u300d\u306e\u6b63\u5f0f\u7248\u3092<a href=\"https:\/\/www.php.net\/archive\/2023.php#2023-11-23-2\">\u30ea\u30ea\u30fc\u30b9<\/a>\u3057\u307e\u3057\u305f(<a href=\"https:\/\/www.phoronix.com\/news\/PHP-8.3-Released\">Phoronix<\/a>)\u3002PHP 8.3.0\u306fPHP\u306e\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u7248\u3068\u3057\u3066\u591a\u6570\u306e\u65b0\u6a5f\u80fd\u3084\u6539\u826f\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Typed Class Constants\u306b\u3088\u308a\u3001\u30af\u30e9\u30b9\u5b9a\u6570\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u5b9a\u6570\u3001trait\u5b9a\u6570\u3001enum\u5b9a\u6570\u304c\u578b\u5ba3\u8a00\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u3001<code>C::{$name}<\/code>\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001\u30af\u30e9\u30b9\u5b9a\u6570\u306b\u52d5\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u533f\u540d\u30af\u30e9\u30b9\u3092\u8aad\u307f\u53d6\u308a\u5c02\u7528\u3068\u3057\u3066\u30de\u30fc\u30af\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u6a5f\u80fd\u3084\u3001\u89aa\u30af\u30e9\u30b9\u307e\u305f\u306f\u5b9f\u88c5\u3055\u308c\u305f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b\u30e1\u30bd\u30c3\u30c9\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b <code>#[\\Override]<\/code>\u5c5e\u6027\u306e\u8ffd\u52a0\u3082\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e3b\u306a\u5909\u66f4\u70b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<blockquote>\n<ul>\n<li>Class constants can now be accessed dynamically with a new syntax addition.<\/li>\n<li>Implementing more appropriate date\/time exceptions.<\/li>\n<li>Adding a json_validate() function for validating JSON.<\/li>\n<li>Implementing the #[\\Override] attribute RFC to check that a method exists in a parent class or implemented interface.<\/li>\n<li>Updating the Zip extension and adding new set\/get archive flag methods.<\/li>\n<li>The PHP POSIX support added posix_sysconf, posix_pathconf, posix_fpathconf, and posix_eaccess functions.<\/li>\n<li>A number of new PHP Sockets options.<\/li>\n<li>New features for the Randomizer class.<\/li>\n<li>Adding support for newer cURL options and constants up through cURL 7.87.<\/li>\n<li>Various new DOM methods added for DOM nodes and elements.<\/li>\n<li>Support for rounding negative places within the number_format() function.<\/li>\n<li>Support for zend_call_stack_get on OpenBSD platforms.<\/li>\n<li>Support for linting multiple files at once using the php -l option.<\/li>\n<li>Support for negative indices in arrays.<\/li>\n<li>upport for anonymous read-only classes.<\/li>\n<li>Support for typed class constants with class, interface, trait, and enum constants now supporting type declarations.<\/li>\n<li>Closures created from magic methods can now accept named arguments.<\/li>\n<li>The PHP CLI now supports linting multiple files.<\/li>\n<li>Implementing the STREAM_NOTIFY_COMPLETED notification for PHP streams.<\/li>\n<li>Many bug fixes and other improvements.<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u65b0\u6a5f\u80fd\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/www.php.net\/ChangeLog-8.php#8.3.0\">ChangeLog<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002\u6700\u65b0\u7248\u306fphp.net\u304b\u3089<a href=\"https:\/\/www.php.net\/downloads\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u958b\u767a\u30c1\u30fc\u30e0\u306f11\u670823\u65e5\u3001\u300cPHP 8.3.0\u300d\u306e\u6b63\u5f0f\u7248\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f(Phoronix)\u3002PHP 8.3.0\u306fPHP\u306e\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u7248\u3068\u3057\u3066\u591a\u6570\u306e\u65b0\u6a5f\u80fd\u3084\u6539\u826f\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002 Typed Clas [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":116048,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[172],"class_list":["post-116047","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-php"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/116047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=116047"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/116047\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/116048"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=116047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=116047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=116047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}