@@ -433,7 +433,7 @@ private function addCustomGetter(string $propertyName, string $methodName, $retu
433433 break ;
434434 default :
435435 // implement other cases if/when the library needs them
436- throw new \Exception ('Not implemented ' );
436+ throw new \Exception ('Not implemented. ' );
437437 }
438438 }
439439
@@ -967,7 +967,7 @@ private function getClassNode(): Node\Stmt\Class_
967967 $ node = $ this ->findFirstNode (static fn ($ node ) => $ node instanceof Node \Stmt \Class_);
968968
969969 if (!$ node ) {
970- throw new \Exception ('Could not find class node ' );
970+ throw new \Exception ('Could not find class node. ' );
971971 }
972972
973973 return $ node ;
@@ -978,7 +978,7 @@ private function getNamespaceNode(): Node\Stmt\Namespace_
978978 $ node = $ this ->findFirstNode (static fn ($ node ) => $ node instanceof Node \Stmt \Namespace_);
979979
980980 if (!$ node ) {
981- throw new \Exception ('Could not find namespace node ' );
981+ throw new \Exception ('Could not find namespace node. ' );
982982 }
983983
984984 return $ node ;
@@ -1044,10 +1044,10 @@ private function createSingleLineCommentNode(string $comment, string $context):
10441044 switch ($ context ) {
10451045 case self ::CONTEXT_OUTSIDE_CLASS :
10461046 // just not needed yet
1047- throw new \Exception ('not supported ' );
1047+ throw new \Exception ('Not supported. ' );
10481048 case self ::CONTEXT_CLASS :
10491049 // just not needed yet
1050- throw new \Exception ('not supported ' );
1050+ throw new \Exception ('Not supported. ' );
10511051 case self ::CONTEXT_CLASS_METHOD :
10521052 return BuilderHelpers::normalizeStmt (new Node \Expr \Variable (\sprintf ('__COMMENT__VAR_%d ' , \count ($ this ->pendingComments ) - 1 )));
10531053 default :
0 commit comments